" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
It is often requried to know which all Solutions contain a particular Webresource.
To do that you need to pass your WebResourceId as ObjectId to “SolutionComponent” table which retrievs all solutionid which contain that webresource.
Then you need to again query “Solution” table to get the name of those solutions as follows.
var arrSolutions=new Array();
var webresourceid = webresourceid //id of the webresource needs to be searched
var filter = "ObjectId eq (guid'" + webresourceid + "')";
var solutioncomponent = GetRecords('SolutionComponent',filter);//perform RetrieveMultiple
for (iCnt = 0; iCnt < SearchFromSolutions.results.length; iCnt++)
filter = "SolutionId eq (guid'" + SearchFromSolutions.results[iCnt].SolutionId.Id + "')";
var solution =GetRecords('Solution',filter);//perform RetrieveMultiple
Now arrSolutions contain all the solution which contain that webresource.
Mail (will not be published) (required)
Enter Captcha Code *
1 × four =
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...