Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to create Lead from HTTP Response through Power Automate

(2) ShareShare
ReportReport
Posted on by 4
          
{
  "request": {
    "startDateTimeUTC": "2025-02-01T08:00Z",
    "swid": "XXXXXXXXXXXX",
    "endDateTimeUTC": "2025-02-01T08:30Z",
    "orgid": "XXXX"
  },
  "response": {
    "client_1": {
      "count": 1,
      "detail": {
        "r": 1234567890,
        "i": "XXXXXXXXXXXX",
        "type": "e",
        "server_time": 1738396882000,
        "ap_mac": "XXXXXXXXXXXX",
        "client_mac": "XXXXXXXXXXXX",
        "client_ip": "10.0.0.1",
        "client_useragent": "UserAgentStringHere",
        "user_id": "sample1@example.com",
        "name": "Sample User 1",
        "firstname": "Sample",
        "lastname": "User",
        "email": "sample1@example.com",
        "mobileFromEmailLogin": "971500000001",
        "schemaFields": {
          "firstname": "Sample",
          "birthdate": null,
          "mobile": "971500000001",
          "email": "sample1@example.com",
          "lastname": "User"
        }
      }
    },
    "client_2": {
      "count": 1,
      "detail": {
        "r": 1234567891,
        "i": "XXXXXXXXXXXX",
        "type": "e",
        "server_time": 1738397749000,
        "ap_mac": "XXXXXXXXXXXX",
        "client_mac": "XXXXXXXXXXXX",
        "client_ip": "10.0.0.2",
        "client_useragent": "UserAgentStringHere",
        "user_id": "sample2@example.com",
        "name": "Sample User 2",
        "firstname": "Sample",
        "lastname": "User",
        "email": "sample2@example.com",
        "mobileFromEmailLogin": "971500000002",
        "schemaFields": {
          "firstname": "Sample",
          "birthdate": null,
          "mobile": "971500000002",
          "email": "sample2@example.com",
          "lastname": "User"
        }
      }
    }
    // Add more sample clients as needed...
  },
  "error": null,
  "authorization": {
    "usage": null,
    "time": "2025-04-16T09:07:28Z",
    "executionDurationInMillis": 892
  }
}
- This is sample http response, the output is getting above JSON object format like Single JSON has multiple objects.
 
I want to create lead from HTTP Response, So How to parse json which having multiple response objects, like one json had multiple leads info which we need to create in msd through power automate?
 
Thanks in advance! 😊
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,445 on at
    How to create Lead from HTTP Response through Power Automate
    • Use the "Parse JSON" built in action and feed in your JSON information. You can provide a sample payload to create the JSON schema automatically to make this even easier
    • You'll then add in a "For Each" action using the Parsed JSON as your input.
    • Within the For Each Loop, you will use the Dataverse Action "Add a new Row".
      • Table = Leads
      • Pull in fields from your JSON parsing action to populate fields on the lead table
    This should loop through all of your items and create leads, whether 1 or 500 were sent in from the initial request.
     
    If this answer helped, please consider marking as verified.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans