cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
annetoal
Super User
Super User

Extracting a response when there isn't a dynamic content choice

I'm writing a Flow that asks and waits for custom responses.

annetoal_0-1615486414851.png

Later, a condition tests to see whether the response was "Underway" or "Complete." However, there appears not to be a dynamic content choice of "Response." So I wanted to see if I could extract an expression from the input JSON.

 

{
    "host": {
        "connectionReferenceName": "shared_approvals",
        "operationId": "CreateAnApproval"
    },
    "parameters": {
        "approvalType": "CustomResponse",
        "ApprovalCreationInput/responseOptions": [
            "Underway",
            "Complete"
        ],
        "ApprovalCreationInput/title": "File due for review",
        "ApprovalCreationInput/assignedTo": "xxx@domain.com;",
        "ApprovalCreationInput/details": "After making any needed changes, please indicate the status of your review by choosing \"Underway\" or \"Complete"\. You will receive a reminder every 2 weeks until the file is marked complete.",
        "ApprovalCreationInput/itemLink": "https://uxxx.sharepoint.com/sites/Domain/sitename/Test/Book1.xlsx?d=xxxxx",
        "ApprovalCreationInput/itemLinkDescription": "Book1.xlsx",
        "ApprovalCreationInput/enableNotifications": true,
        "ApprovalCreationInput/enableReassignment": true
    }
}

 

 

So far, this is what I've come up with but it's not working. 

 

value('ApprovalCreationInput/responseOptions')?['approvalType']

 

Help please? Any assistance appreciated.

 

Thanks,

Anne

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Microsoft
Microsoft

Hi @annetoal 

 

If you are looking for CustomResponse

 

{
"host": {
"connectionReferenceName": "shared_approvals",
"operationId": "CreateAnApproval"
},
"parameters": {
"approvalType": "CustomResponse",

........

 

It will be something like (i don't know what your JSONBODY source is called)

JSONBODY?['parameters']?['approvalType']

 

Damien

View solution in original post

1 REPLY 1
DamoBird365
Microsoft
Microsoft

Hi @annetoal 

 

If you are looking for CustomResponse

 

{
"host": {
"connectionReferenceName": "shared_approvals",
"operationId": "CreateAnApproval"
},
"parameters": {
"approvalType": "CustomResponse",

........

 

It will be something like (i don't know what your JSONBODY source is called)

JSONBODY?['parameters']?['approvalType']

 

Damien

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,294)