Updating a date field in Flow Designer

matthew_hughes
Kilo Sage

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:

 

matthew_hughes_0-1710405804364.png

 

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.

1 ACCEPTED SOLUTION

Hi @matthew_hughes ,

 

If 2nd step is where you are getting the value and it is a look up record, then you should use 

fd_data._2__look_up_record_current.<field name>
 
Regards,
Deborah Brown
 
Mark the article as helpful and bookmark if you found it useful.

View solution in original post

25 REPLIES 25

Hi @Arun_Manoj When I try and save that, it states 'attempting to use undefined input = 'current' from AMA Business Flow'

Hi @matthew_hughes , try

var scopingCompleteDate = input.u_last_scoping_ama_completed_date;

Hi @Arun_Manoj That didn't work either. 

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':

 

matthew_hughes_0-1710413403224.png

 

Amit Verma
Kilo Patron
Kilo Patron

Hi @matthew_hughes 

 

The variables "u_last_scoping_ama_completed_date" and "u_access_management_controls" are flow variables or output variables from a custom action or catalog variables ?

 

You should try accessing these variables with the syntax such as fd_data.action_name.variablename. Please refer below example :

 

AmitVerma_0-1710407417814.png

 

AmitVerma_1-1710407456185.png

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

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':

 

matthew_hughes_0-1710413403224.png