I need a button in squid that will run this: /apex/CarePlanMerge?id={PatientId}

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Can someone help me with this? I need a button to run the equivalent of this apex call (hopefully that is the right terminology. I'm not a programmer):

/apex/CarePlanMerge?id={PatientId}
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Never mind! I didn't realize there was a button action type of custom Salesforce button! Thanks
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Glad you figured it out.   If you don't have the button set up in Salesforce, you could have simply made the button type "URL redirect" with the URL being "/apex/CarePlanMerge?id={{{PatientId}}}"   (This assumes that PatientId is in your model.  Also, not the triple braces...) 
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Great! I'll have that tool in my pocket for the next button. Thanks.