• Adrian Sameli
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

I'm trying to call the standard form to create a new related object in an overlay window, when loading a specific object detail page. That's how I would call the function:

<script> var previousOnload = window.onload; window.onload = function() { if (previousOnload) { previousOnload(); } alert('new related object...'); } </script>

How can I find the right function to call for any standard buttons? Like for example the "new" action on any related list? The action URL looks like this:

https://<domain>.lightning.force.com/lightning/o/<Related_Object>__c/new?count=5&nooverride=1&useRecordTypeCheck=1&navigationLocation=RELATED_LIST&uid=<RelatedID>&backgroundContext=%2Flightning%2Fr%2F<Parent_Object>__c%2F<ParentID>%2Fview

Thank you very much for your help.

Hi all

I would like to offer my team quick support using the Jira software instead of Salesforce cases. The easiest way would be to inject a tiny button (via script).

I understand that it is not possible to directly inject a 3rd party JS library into the lightning experience. Is it possible to embed and execute the following code? (or do you have another way to embed a 3rd party support button)

<script data-jsd-embedded data-key="###" data-base-url="https://jsd-widget.atlassian.com" src="https://jsd-widget.atlassian.com/assets/embed.js"></script>
Hi all

I would like to offer my team quick support using the Jira software instead of Salesforce cases. The easiest way would be to inject a tiny button (via script).

I understand that it is not possible to directly inject a 3rd party JS library into the lightning experience. Is it possible to embed and execute the following code? (or do you have another way to embed a 3rd party support button)

<script data-jsd-embedded data-key="###" data-base-url="https://jsd-widget.atlassian.com" src="https://jsd-widget.atlassian.com/assets/embed.js"></script>