Skip to main content
Level 1
Oct 9, 2022 1:53 AM UTC
Solved

REST SyncLead Blank vs "NULL"

Hey team,

 

What is the expected behaviour when updating a lead using the REST SyncLead API (Non Bulk) and passing an empty/blank value? I was under the impression that a blank/null value for a field would ignore the current value of field while passing a string of "NULL" would clear the field.

 

Is that correct?

 

Thank you,

Vlad

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Oct 9, 2022 6:01 AM UTC

You're thinking of forms and flow steps, where because there's no ability to specify an actual null (form values are strings) the string "NULL" is a reserved word that means "set to empty".

This behavior doesn't exist with the REST API because it doesn't need to. JSON explicitly supports null.

1 reply

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Oct 9, 2022 6:01 AM UTC

You're thinking of forms and flow steps, where because there's no ability to specify an actual null (form values are strings) the string "NULL" is a reserved word that means "set to empty".

This behavior doesn't exist with the REST API because it doesn't need to. JSON explicitly supports null.

Translate