The CRM card also loaded on the deal page without any error. I want to show portal ID on the deal CRM card, I have used following code to get Portal ID
const portalId= context.params.portalId;
But it getting undefined,
Other than this the following default values getting properly
I am requesting a json file URL, which is present in the file section of Hubspot portal where the public app is installed, and the file name is same as the portal ID.json . Once the json file content received we will display it on the CRM card, there is no issue for display the content on the CRM card, if we use static portal ID.json file in our code then it execute suceessfully and display the content on the CRM card without any error.
Our issue is to fetch Portal ID and with the use of that ID getting the Json file. Here is my code please look at it and help me as soon as possibe.
var results = []; var dataObj = { "objectId": 123, "title": "Vendori quotes not available for this Deal, please update the JSON file. ", "created": "2016-09-15", "priority": "HIGH", "project": "API", "reported_by": "msmith@hubspot.com", "description": "Customer reported that the APIs are just running too fast. This is causing a problem in that they're so happy.", "reporter_type": "Account Manager", "status": "In Progress", "ticket_type": "Bug", "updated": "2016-09-28" };
var results = []; var dataObj = { "objectId": 123, "title": "404 JSON file not found, please upload the file. ", "created": "2016-09-15", "priority": "HIGH", "project": "API", "reported_by": "msmith@hubspot.com", "description": "Customer reported that the APIs are just running too fast. This is causing a problem in that they're so happy.", "reporter_type": "Account Manager", "status": "In Progress", "ticket_type": "Bug", "updated": "2016-09-28", "properties": [ { "label": "Note: ", "dataType": "STRING", "value": "File should place on root of the file section and it's name should be "+portalId+".json" } ] };
Hey, @DTeam8👋 Do you have any additional details you can share? Do you have a simple example of a request and response you can add as a code block here? I'm happy to do a bit more investigation into if this is the expected behaviour.