Mingle Card: 2513
This should be similar to the GetUtilityUserInfo class but it should return ticket item field sets. Is there a way to add parameters to this call?
@RestResource(urlMapping='/GetUtilityUserInfo/\*')
global with sharing class GetUtilityUserInfo{
@HttpGet
global static String doPost() {
string userinfo = UtilityUserInfo.CurrentUserInfo();
return userinfo;
}
}
Mingle Card: 2513 This should be similar to the GetUtilityUserInfo class but it should return ticket item field sets. Is there a way to add parameters to this call?
(http://salesforce.stackexchange.com/questions/38585/is-it-possible-to-get-an-objects-fieldsets-with-the-rest-api)
As for parameters, we should be able to pass them as part of the URL. e.g.
We'll need to do a little research on how to extract that info from within the RestResource...
I think that these will answer most/all of our questions:
The salesforce restExplorer can be used to test the class:
https://workbench.developerforce.com/restExplorer.php
/services/apexrest/getFieldSets?sObject=Ticket__c
I created a fieldset on the ticket object. This was the result: