- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Custom Date Field Update with Nulls
Hi,
I would like to conditionally update a Date field(this is a custom field added on the object), only when a condition is met I would like to keep the new value otherwise I dont want to update.
I know i can do this by If and doing an additional update only for this field, but checking whether I can update by using the custom liquid expression like {% if 0>1 %}{{Workflow.ExecutionDate}}{% else %}{% endif %}. This is working for all the other text fields, but not working for Date fields as it is not accepting nulls.
This will help me a lot to reduce the number of tasks in a workflow and also having less repeatitive coe
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Custom Date Field Update with Nulls
Yes, Assuming you are updating the custom field using the api callout on that object, you can certainly use the liquid expressions in the Request body and able to conditionally set the custom field.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Custom Date Field Update with Nulls
Yeah I thought of Callout as another option too, to update the object.
But I was using the Zuora Update Object task to do this in workflow.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Custom Date Field Update with Nulls
Callout will offer more flexibility to build the Request payload than the CRUD update task.
Update task is SOAP API and I would rather use the REST callout over it anytime.