URL Merge Condition issue

  • 1
  • Question
  • Updated 3 years ago
I've create a model that access a rest service created in Salesforce. I'm able to retrieve all data from the model without issue. The problem I am having is that whenever I attempt to use a URL Merge Condition  based on the Service URL Skuid seems to break.

Whenever I attempt to preview the page I get a dialog box for the parameter field but there's no way to enter the parameter. 



When I try to view the page Skuid page instead I receive an error message that states the error text can't b e found. 



At this point I'm stuck. Any help you can provide would be much appreciated. 
Photo of John Harris

John Harris

  • 254 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Did you make your URL Merge Condition Filterable ? It will need to be filterable and have a unique Name in order for Skuid to ask you to populate sample merge variable data for it.
Photo of John Harris

John Harris

  • 254 Points 250 badge 2x thumb
Hey, Zach. I just changed it to Filterable and it's behaving in the same manner. 
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
If you are actually trying to pass a page parameter value into your REST model as a condition - you need to name the Parameter.

 

If you are using an action framework sequence to pass a value into the REST model condition then you need to leave the value "Blank"  (making it filterable)  and use the action type "Activate Condition and pass Value" 

Hopefully these work for you. 
Photo of John Harris

John Harris

  • 254 Points 250 badge 2x thumb
Hey, Rob. I'm passing in the parameter value into the REST model and still no luck. I feel like I'm missing something small but I can't seem to find it. I'm still getting the strange error below and the filter doesn't seem to have any effect on the returned records. 

Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Hey John,

Try entering the "Name" of the record you're trying to preview, and see if an autocomplete dropdown appears. If it does, pick a record from the autocomplete and then click Go.
Photo of John Harris

John Harris

  • 254 Points 250 badge 2x thumb
Hey, Zach. The autocomplete drop down doesn't appear. I did find out that the Service URL needs to be in this format for our REST service:

'services/apexrest/<ServiceName>/<SFDC_ID>'.

I got that to work but the preview still doesn't work. But, I'm in much better shape now. 

Thanks for your help. 
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Good to hear. Strange that the preview isn't working, we'll have to take a look at that.