View Categories

Additional activity field visible in the activity posted on the lead.

1 min read

Issue
I am not passing an activity field in the API payload for creating Activity but when the activity is posted on the lead the lead field is auto-populated.

example :- {“relatedProspectId”:”xxxxxxxxxx”,”activityEvent”:”205″,”activityNote”:”Create order request”,”activityDateTime”:”2023-10-19 11:30:05″,”fields”:[{“schemaName”:”mx_Custom_1″,”value”:”12665384″},{“schemaName”:”mx_Custom_3″,”value”:”2023-10-19 11:28:48″},{“schemaName”:”mx_Custom_4″,”value”:”2023-10-18 18:30:00″},{“schemaName”:”mx_Custom_5″,”value”:”2023-12-03 18:29:59″},{“schemaName”:”mx_Custom_6″,”value”:”buy”},{“schemaName”:”mx_Custom_7″,”value”:”Mumbai”},{“schemaName”:”mx_Custom_8″,”value”:”MoneyBack”},{“schemaName”:”mx_Custom_18″,”value”:”NEW_ASSIGNMENT_REQUEST”},{“schemaName”:”mx_Custom_21″,”value”:”prod”},{“schemaName”:”mx_Custom_24″,”value”:”UPGRADE”},{“schemaName”:”mx_Custom_32″,”value”:false},{“schemaName”:”Status”,”value”:”Active”}]}

In the above request, we are not passing the activity field Promise authentication added (mx_custom_34) but if we check the activity posted on the lead we will see the field under the activity.



Resolution
This is because if you do not give any spaces in the dropdown value for the activity field the system will automatically select the 1st option and will show in the activity field.



The correct way to have the values is.



If we do not leave a space in the 1st option then by default the system will make the activity field visible on the lead with the 1st option as default.

Scroll to Top