cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
annetoal
Advocate III
Advocate III

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,073)