Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add GlideDuration field and GlideDateTime and set the result in GlideDateTime field

sanjublores
Kilo Contributor

Hi

Set the Due Date (GlideDateTime field) on a record by adding the Created On (GlideDateTime) value and the Duration from the associated SLA Definition (duration field).

  • The Due Date should be calculated as:
    Due Date = Created On + SLA Definition Duration

  • The SLA Duration is a duration type field defined in the SLA Definition record.

  • The result should be stored in the Due Date field of the same record. (of created on record)

     

    I want to set it from the flow designer.

     

    Can any one guide me on this


 

1 REPLY 1

J Siva
Kilo Patron
Kilo Patron

Hi @sanjublores 

Since an SLA has already been defined, you can retrieve the Original Breach Time value from the task_sla and use it to populate the Due Date field.

Regards,

Siva