cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DrishM13
Helper II
Helper II

Flow to get approval based on rating in Forms

Hi,

 

I have a simple form where a user must enter their name & surname, email, managers email and also indicate a rating from 1 to 5.

 

My flow is set up to send the manager an email that the rating is awaiting their approval or rejection.

 

Flow as follows:

 

DrishM13_0-1621495199790.png

 

I seem to have an error in this Pasre JSON

 

DrishM13_1-1621495229945.png

 

{
    "type""integer",
    "items": {
        "type""object",
        "properties": {
            "name": {
                "type""string"
            },
            "link": {
                "type""string"
            },
            "id": {
                "type""string"
            },
            "type": {},
            "size": {
                "type""integer"
            },
            "referenceId": {
                "type""string"
            },
            "driveId": {
                "type""string"
            },
            "status": {
                "type""integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}
 
I think it may be the above.
I had "type": "integer" as  "type": "array" which made the error that it should be integer so I changed it but then I get this error:
 
DrishM13_2-1621495330751.png
Any assistance would be greatly appreciated.
1 REPLY 1
PrasadAthalye
Community Champion
Community Champion

Why do you want to parse it as Json? Output of Rating question is an integer. 

 

I have my last question as rating and I selected 3 rating.. See below... You can directly use that question to get rating.

 

  "body": {
        "responder""Prasad_Athalye@YYY.com",
        "submitDate""5/20/2021 11:42:33 AM",
        "rd7f84d633bd24b01bd831a1128630b83""Black",
        "rb155ddff72364222b289b17c7727a3e9""",
        "r4154547b9a294106946e4ce67887d728""1",
        "r6c6ad0ab931a4a26b0564e655ebd153c""HR",
        "r4adde042418f49f9895b0acdde6385ac""3"
    
PrasadAthalye_0-1621511187829.png

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,704)