- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 01:46 AM
I'm trying to update the 'Next AMA Due Date' field in my flow designer based on the following requirements:
- If Enhanced = Date Scoping Completed + 1 Year
- If Moderate = Date Scoping Completed + 2 Year
- If Basic = Date Scoping Completed + 3 Year
I'm trying to implement the requirements with the following code:
However, what I'm finding is that it doesn't update the 'Next AMA Due Date' field with the required date. I ran some logs for the 'scopingCompleteDate' and 'amaRating', but nothing is returning to the logs. I was just wondering if somebody has come across this before and what I can do to resolve it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 04:25 AM
Hi @matthew_hughes ,
If 2nd step is where you are getting the value and it is a look up record, then you should use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 03:55 AM
Use below syntax :
fd_data._2__look_up_record.record.<your-field-name>;
Once you start typing in the script pane, it will prompt you for the fields.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 02:22 AM - edited 03-14-2024 02:28 AM
Hi @matthew_hughes ,
You can appreciate this reply by hitting HELPFUL or CORRECT .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 03:28 AM
Hi @matthew_hughes,
First you need to know from which flow designer step you are getting the value,
example,
fd_data = this is constant to get a value from script
trigger or any step value should be the next object.
then if it is table, then current. if it is variable, then current.variables
lastly it should be the field or variable backend name.
If the value is not from any step, then add a "look up record" or "look up records" flow logic step to get the value of that field.
Regards,
Deborah Brown
Mark the article as helpful and bookmark if you found it useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 03:52 AM
Hi @Deborah Brown L Unfortunately, that functionality doesn't work in our instance where it automatically appears.
Hi @Amit Verma What would be the syntax for getting a field from section 2 and getting a field from within the 'Business Application Record':
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 04:25 AM
Hi @matthew_hughes ,
If 2nd step is where you are getting the value and it is a look up record, then you should use