0

I have a url in lightning as follows:

https://abc--progdev2.lightning.force.com/lightning/n/MyMembers? c__caseId=500J000000K70ucIAB &c__claimId=M00103088 &c__legalOwnerName=Potomac%20Hospital%20of%20Prince%20William&c__endofUrl&ws=%2Flightning%2Fr%2FCase%2F500J000000K70ucIAB%2Fview%3Fc__srchFlow%3Dtrue

I want to get the value of the parameter case Id,claimId into a component attribute in the doInit event. Please Let me know how to achieve this.

4
  • please do some research on, there is already answer for this same questions
    – Umesh Beti
    Commented Apr 1, 2019 at 6:17
  • @Umesh, I saw the url and did the same. I am doing like this. <aura:attribute name="caseId" type="String"/>. . Inside the doInit event of the component I have as component.get("v.pageReference").state.c__caseId). But I am getting an error as follows "Cannot read property 'state' of null". Please let me know how I can resolve this Commented Apr 2, 2019 at 4:35
  • can you please update your Component and it's controller here by editing your questoin.
    – Umesh Beti
    Commented Apr 2, 2019 at 6:07

0

You must log in to answer this question.

Browse other questions tagged .