function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Paul McMurrughPaul McMurrugh 

Get record link on Global Action

I am trying to create a global action which pulls through the current record ID wherever it is used.

So far I have the following;

"https://bruntwood.my.salesforce.com/" & Account.Id

Now this works fine when the action is used on an account, but not any other object. How do I relate it to the current link without having to create a separate action for each object?

Many thanks,

Paul
SalesFORCE_enFORCErSalesFORCE_enFORCEr
What is the Action Type on your global action?
Paul McMurrughPaul McMurrugh
Create a case.
SalesFORCE_enFORCErSalesFORCE_enFORCEr
So, where are you giving this url with Account Id? Create case will open a form with some case fields.
Paul McMurrughPaul McMurrugh
Our Salesforce users have a global action to create a Salesforce Support case based on the record they are currently on. We want to pull through the link on it.
SalesFORCE_enFORCErSalesFORCE_enFORCEr
can you share a screenshot of the create case action?
Paul McMurrughPaul McMurrugh
User-added image
SalesFORCE_enFORCErSalesFORCE_enFORCEr
Oh so Record Link is custom url field on Case object?
Paul McMurrughPaul McMurrugh
It is, yes. So I want to pull through the current page URL in it.
SalesFORCE_enFORCErSalesFORCE_enFORCEr
I think you need to create a custom vf page and use it in your global action. 
Jessica PostJessica Post
Came across this and noticed the post is older so thougth I would check, are there any new solutions out there for this?