Wish I had seen this before I developed a whole "Screen Flow" to Clone a Task from a custom Action button - this looks ALOT easier!!
@Harshal-vo3sr2 жыл бұрын
You are amazing, you are my life saver..I created custom clone button on Opportunity which will clone associated Contract record.. Amazing you are
@SalesforceAdam2 жыл бұрын
You're welcome - glad I was able to help.
@mgupta108 ай бұрын
Hi, can the date field be cloned using this hack? I’m not able to clone the date field. Getting an error it should be in format m/d/yyyy. I already have the correct format.
@Sonic_Serendipity2 жыл бұрын
How we can handle a pick list value which have separated comma in URL hack?
@SalesforceAdam2 жыл бұрын
Hi there, I think 'with difficulty'. You can't do any logic in the URL so you can only pass the value to another text field I think. It's not great. Maybe a flow can sort out the use case?
@Rootkit_692 жыл бұрын
Hi Adam, Can you suggest how to create a flow to override the button "Mark status as complete" button while moving the case to next status. I feel that it is creating an extra click to do that. Once user click on the status on path and the again has to click on "Mark status as complete". I wish it was a single go when user just click on status on path. Thank you.
@SalesforceAdam2 жыл бұрын
Hi there, great question. Unfortunately that's not possible. The way salesforce works with this standard feature, it will always require two clicks, either change status field value and click save, or click status in the chevrons and then the 'Mark as complete'. However, you can build a flow that will automatically set the status (or any other field value) and save it with one button click. Check out this video for how to build a flow with a 'Get Records' and 'Update Records' function: studio.kzbin.infoQV0NT08W7OM/edit And then check this one out to learn how to fire the Flow on a custom button. That way a button can be created called 'Close Case' or 'Accept' (where you also change the owner), etc...: studio.kzbin.info7egxs-VpTgY/edit Hope these help a bit.
@simtahal2 жыл бұрын
Hey Adam! Thank you for this! is it possible to copy amount (currency) fields? I tired to do this for a custom button for cloning an opportunity however the values are not copying over.
@hackersworld42442 жыл бұрын
@AdamFoyston Hi Adam Thanks for the video for my request. Here is the question is I try to apply this on custom lookup field at the time face some Error. This is a Salesforce Standard lookup field I'm right. Kindly Requested to check with custom lookup Field. Please Check it. Big Thanks for your Response . Regards Hackers World
@SalesforceAdam2 жыл бұрын
Hi there, I've found your question! So doing this on custom lookup,...it does work but I think the thing that you might want to check, is that the value you're referencing is in fact the ID field value. In other words, if the lookup is to a custom object, then you can't just use the reference for that field, you need to click into the field reference to see the fields within and search for the Record 'ID' field to pull in. That will then pass the actual ID to the custom lookup you're trying to set. See this example of the URL but with a custom lookup field called 'Custom Account Lookup'. I'm setting it to 'AccountID' but if the object is custom, again ,make sure you're drilling into the field on the object and the ID one: /lightning/o/Opportunity/new?defaultFieldValues=StageName=Qualification,CloseDate={!TEXT(TODAY()+30)},Custom_Account_Lookup__c={!Account.Id},LeadSource=Partner+Referral&saveURL=/{!Account.Id}
@vishwatej4342 жыл бұрын
Is it possible to add a related list in the url? I want to clone the records with the related lists but I want to know if we can create one without a flow. It would be great if we can do that. Waiting for ur reply, thanks
@SalesforceAdam2 жыл бұрын
Hello - unfortunately the URL is not very clever. You can't do any logic in it and nor can you do actions like that in it. You will have to use a flow I'm afraid. However, you should be able to do it with a few tutorials. Winter 23 now allows you to update related records directly, so check that feature out when it's GA. :)
@vishwatej4342 жыл бұрын
@@SalesforceAdam sure thank you!
@hackersworld42442 жыл бұрын
Hi Adam any updates regarding my question
@mittureddy012 жыл бұрын
Did you get this resolved? I have a custom lookup that I’m trying to clone its data to new record… but it is unable to pass the data. Let me know if you found a way around this
@SalesforceAdam2 жыл бұрын
Hi there, I think I did reply to your other post in another video, but if still needing help please repost here and I'll see if I'm able to (or at least guid in the right direction) :)
@hackersworld42442 жыл бұрын
@@mittureddy01 from URL hijacking it's not possible to pass the custom look up field so I'm using Custom VF page and get the record from Apex controller and override the VF page on Clone button
@SalesforceAdam2 жыл бұрын
Hi there, so you should be able to simply pass the id of the record you want to populate the lookup with the reparent/reconnect to another record. In classic, you had to faff around with a certain syntax but in Lightning, you can simply pass the ID. Although, if you are passing an ID, and it's hardcoded, please remember that you need to change the ID when you move to Production (as the record ID's will be different. Check out this video around 5mins for an example of me updating a lookup value (RecordType) with an ID. kzbin.info/www/bejne/emeYf5qdpKmprKc However, it depends on your use case. If you are trying to set the value of a lookup in a record to something that isn't stored in the record itself (i.e. you need to perform a search for a specific record, or even create a new record and set it to the ID of that new record) then I highlight recommend not to do a URL hack and instead do a custom button that launches a flow where you can do pretty much anything. Check this out for creating a simple flow (tweak it to what you want to do): kzbin.info/www/bejne/h4eTf4dmbbxqha8 and this one for launching it from a custom button: kzbin.info/www/bejne/bZbKqaZji9WHnbs
@SalesforceAdam2 жыл бұрын
I replied to his/her other field, but here is my text: So doing this on custom lookup,...it does work but I think the thing that you might want to check, is that the value you're referencing is in fact the ID field value. In other words, if the lookup is to a custom object, then you can't just use the reference for that field, you need to click into the field reference to see the fields within and search for the Record 'ID' field to pull in. That will then pass the actual ID to the custom lookup you're trying to set. See this example of the URL but with a custom lookup field called 'Custom Account Lookup'. I'm setting it to 'AccountID' but if the object is custom, again ,make sure you're drilling into the field on the object and the ID one: /lightning/o/Opportunity/new?defaultFieldValues=StageName=Qualification,CloseDate={!TEXT(TODAY()+30)},Custom_Account_Lookup__c={!Account.Id},LeadSource=Partner+Referral&saveURL=/{!Account.Id}
@edawnbarber4221 Жыл бұрын
Hi Adam, thank you for this. Brilliant! One question: if I am using this method, how would I write in a case record Id change as well? Something like this? RecordTypeId=(012DG00000EASdYAO)
@SalesforceAdam Жыл бұрын
Hi there, so record types are a bit tricky. You can do this I think (from memory) like this: /lightning/o/Opportunity/new?recordTypeId=0121U000000KDRIQA4&defaultFieldValues=AccountId={AccountIDValue}, etc, etc...
@Bassurra Жыл бұрын
I wanted to keep watching, but the background salsa fiesta music clashed with the undiagnosed spectrum disorder this video gave me.
@SalesforceAdam Жыл бұрын
Oh no! I'm sorry for that! Less music....got it :)