cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
annetoal
Helper V
Helper V

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
Super User
Super User

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
Super User
Super User

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,247)