TL;DR
I have a field with multiple related apps. All apps contain an ID. I am pulling over the ID from the linked item even if Iâm not calling from that app.
I have a production app
multiple âproduct appsâ are linked through a related app.
prod1, prod2, prod3, âŠ
I have set it up to pull over the ID from all linked products so we can keep things together.
In the screenshot above, I commented out everything except for âstickersâ. The odd thing is that there is not an item from âstickersâ attached here, only âsubstratesâ yet somehow it is pulling the correct ID from âsubstratesâ over. Is it because they have the same field name (eg Estimate ID)?
I do not feel like this is how it should work but I may be mistaken.
I am looking for any clarification on this and a suggested best practice.
Should I only call one app even though I need data from multiple apps??
Although I am unsure as to why your way puts the same ID multiple times (it does when I use your method as well), this way seems to work:
let id = "";
if (ï»ż@All of Unique IDï»ż[0]) {
id = ï»ż@All of Unique IDï»ż[0]; //base one
}
if (ï»ż@All of Unique IDï»ż[0]) {
id = ï»ż@All of Unique IDï»ż[0]; //base two
}
if (ï»ż@All of Unique IDï»ż[0]) {
id = ï»ż@All of Unique IDï»ż[0]; //base three
}
id;
thank you very much for your report and your detailed analysis. You are helping us a lot with this!
We will analyze the issue and get back to you here.
So, I am now running into an issue where I am having âghostâ data showing up.
For example, I have a âBannerâ attached and that is all, I will have a âghostâ or âshellâ of âweb designâ that shows up regardless.
I did create a workaround to remove all of the âghostâ items until we learn more about this issue. I am sharing it below so it can help someone else should they run into this issue as well.
var allItems = "";
var productArrays = [
ï»ż@All of relatedï»ż field, //Add your @all of fields here
ï»ż@All of another related fieldï»ż, //Separate each with a comma
];
productArrays.forEach(lineItemPreviews => {
lineItemPreviews.forEach(lineItemPreview => {
if (lineItemPreview && !lineItemPreview.includes('null')) {
allItems += `${lineItemPreview}`; // Add line item preview to allItems if it's not null and doesn't contain 'null'
}
});
});
html;