Expand my Community achievements bar.

SOLVED

Using Fusion to auto-approve Requests

Avatar

Level 3

I'm needing to use Fusion to auto-approve Requests after X number of days.

Based on AI searches, it appears that I need to do the following:
https://<your_workfront_instance_url>/attask/api/v12.0/approval/<approvalID>

PUT


Body
{"decision": "APPROVE"}

I'm having difficulty finding what object contains the approvalID, to use the above-mentioned call. 

Has anybody done this that can point me in the right direction?

Thanks!


1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @daBellows .  Depending on the object type of the Request (e.g. Issue/OPTASK), you'll find the `approvalID` on that record:

 

{
  "data": {
    "ID": "63ab...",
    "awaitingApprovals": [
      {
        "ID": "63de...",
        "status": "PEND",
        "objCode": "APR",
        "assignedToID": "58e..."
      }
    ]
  }
}

 

And to safely approve, you can use the Workfront "Misc Action" module's "approveApproval" action with the approvalID value

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi @daBellows .  Depending on the object type of the Request (e.g. Issue/OPTASK), you'll find the `approvalID` on that record:

 

{
  "data": {
    "ID": "63ab...",
    "awaitingApprovals": [
      {
        "ID": "63de...",
        "status": "PEND",
        "objCode": "APR",
        "assignedToID": "58e..."
      }
    ]
  }
}

 

And to safely approve, you can use the Workfront "Misc Action" module's "approveApproval" action with the approvalID value