web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Get field value from Json in Powerapps

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I have a CustomPage on Lead entity with a Edit form to allow the user updating the data back to the record. I want to pass a field from a Json to this custom page. The Json file looks like this:

const data = {
recordId: Test.Xrm.getXrmPage().data.entity.getId().toLowerCase().replace("}", "").replace("{", ""),
Test_showdeactivationemail: showMail
};

"recordId": JSON.stringify(data);
Now I need to get the RecordId from the above Json file in Powerapps.Do you have any idea how to solve this problem? Appreciate any suggestion!
Best Regards
I have the same question (0)
  • Guido Preite Profile Picture
    54,086 Moderator on at

    if you just need to get the recordId from the const "data" variable, because is json you can just use

    data.recordId

    and not JSON.stringify(data)

    but maybe I didn't understand your question, if you can write more details will be useful

  • Tavarish Profile Picture
    25 on at

    Hi Guido Preite

    Thank you for your answer!

    no actually I want to pass a field from anther table to my custom page, which is in my code "Test_showdeactivationemail". Therefore I have stored here this field in Const.

    Now I want to call not only recordid but also this field in my Cutom Page. I dont know if there is a way here.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans