You need to sign in to do that
Don't have an account?
Heaven Dev
Can you please help me?
Unexpected character ('A' (code 76)): was expecting comma to separate OBJECT
Hello
I have try to create dynamic apex page genrat.So I have use Tooling API calling.but it give me erorr "Unexpected character ('L' (code 76)): was expecting comma to separate OBJECT"
I have set Markup Field following this.
string MarkVal=''; string objval='Account'; MarkVal += '<' + 'apex' + ':' + 'page standardController=' + '"\"' + objval + '\""' + '>' ; MarkVal += '\n'; MarkVal += '<' + 'c' + ':' + 'myComponent' + '>' ; MarkVal += '\n'; MarkVal += '<' + '/c' + ':' + 'myComponent' + '>' ; MarkVal += '\n'; MarkVal += '<' + '/apex:page>';and reuest body in following this way ,
req.setBody('{"Name":"ApexSample2","ApiVersion" :40,"MasterLabel" :"ApexSample2" ,"ControllerType": 0,"Markup": "' + MarkVal+'" }');If I am write without standardController is working but when I am use standardController="Account" is not working.
Can you please help me?