- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 12:29 AM
Hi Team,
I have a requirement we need to add a custom field, the type of the field is True/false in the catalog task once the task is completed and value is set to that field,I need to get the value of the custom field in the workflow.If the value is true i need to trigger one activity or if the value is false i needs to trigger another activity.
How can we achieve this?
Please help me.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 02:42 PM
Instead of "request_item" you can use "parent" in line no. 8 and also verify that in the task record in which field RITM no. gets populated. And if it is different than request_item and parent then use that instead of both.
Thank you!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 10:23 AM
Hi Brad,
I have tried without quotes in the if condition but its not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 12:13 PM
Ensure that that request_item field on the Catalog Task is being populated in your environment, otherwise use 'parent' in the addQuery. Add a log line within the grTask.next() block at the beginning to confirm if a Catalog Task record is returned, and the value of the custom field:
workflow.info('Catalog Task found: ' + gr.field_name);
Check this log via the Workflow Context related link on the RITM record, on the Log tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 10:38 AM
Please update your 12 no. Line with below line and try again by generating new request:
if (grTask.custom_field == true){
And also check the default value of this custom field if present.
Thank you!!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 10:58 AM
Hi Dnyaneshwaree ,
I have tried the above changes but its not triggering true condition and the default value of custom field is false when we checked that check box the value turns to true.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 02:42 PM
Instead of "request_item" you can use "parent" in line no. 8 and also verify that in the task record in which field RITM no. gets populated. And if it is different than request_item and parent then use that instead of both.
Thank you!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru