How can I access case record values in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I am building a flow to run every day and check for cases that meet certain conditions. In the for each loop for the cases I am adding approval for each record found. I am trying to set the due date for approval but unable to get the variables.
I tried using the following but doesnt work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi @samadam
what's the requirement?
Perhaps you can do this without a single line of code while using a flow...
EDIT: I was confused as you talk about approval due date and then HR profile...
you can create a flow variable in the top right corner in your flow, that's very powerful thing and this variable can be (re-)used in your flow
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I need to get the value of end_date from HR profile of the subject person on case and populate that as due date on approval.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
@samadam And if you try to retrieve it in a background script, does it work for you?
Prepare it there and once you have it (I don't know the formats, types etc.), then you can call it from the flow variable
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @samadam
May you try use:
fd_data.trigger.request_item.variables.subject_person_hr_profile.getDisplayValue();