Dynamics enums in Approval Step
| 1 | //native |
| 2 | |
| 3 | //this assumes the Form tab has a string field named "foo" |
| 4 | |
| 5 | import * as orvanta from "@orvanta/client@^1.158.2" |
| 6 | |
| 7 | export async function main() { |
| 8 | // if no argument is passed, if user is logged in, it will use the user's username |
| 9 | const resumeUrls = await orvanta.getResumeUrls("approver1") |
| 10 | |
| 11 | // send the resumeUrls to the recipient or see Prompt section above |
| 12 | |
| 13 | return { |
| 14 | enums: { |
| 15 | foo: ["choice1", "choice2"] |
| 16 | }, |
| 17 | } |
| 18 | } |