get subsidiary logo image url in suitescript
# ask-stanley-ai
k
get subsidiary logo image url in suitescript
c
AI generated answer (using internal Slack threads):
In SuiteScript, there is no direct way to get the subsidiary logo image URL. However, you can use a workaround by sourcing the value to a custom field and then referencing the custom field in your template. Here is a sample code snippet that was shared in the threads:
Copy code
html
<#if subsidiary.logo??>
    <img src="${subsidiary.logo@url}" style="max-height:86px; max-width:280px;" />
<#elseif companyInformation.logoUrl?has_content>
    <img src="${companyInformation.logoUrl}" style="max-height:86px; max-width:280px;" />
</#if>
This code checks if the subsidiary logo exists, if it does, it uses that. If not, it falls back to the company logo. Please note that the logo must be uploaded on the subsidiary record instance for this to work. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816803
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801391602
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.782104373
Please provide your feedback on this answer.