apex-code
How could you write a salesforce test class for a simple user-agent lookup?
I\'m looking to write a test for a开发者_StackOverflow function that just returns a value - that\'s it. I\'m not sure how you could do that. I\'m under the impression you have to use system.assert or[详细]
2023-03-23 19:26 分类:问答Salesforce - Create JSON from SOQL results
I\'m using a VisualForce page to generate a JSON file that\'s read by a jQuery plugin. My page uses a controller to query for records and output them. Code is below:[详细]
2023-03-23 02:46 分类:问答Reference a remote site setting URL in Apex class?
I have a webservice class that will be in a managed package and distributed to multiple clients. The class currently has a variable with the ha开发者_JAVA百科rdcoded value of the server it\'s hitting.[详细]
2023-03-22 20:27 分类:问答Programatically fetch a list of all Salesforce Objects using apex in Salesforce
I want to fetch a list of all Salesforce objects. I found this link http://wiki.developerforce.com/index.php/Enterprise_Describe_Global[详细]
2023-03-21 10:55 分类:问答VisualForce(APEX): Update record with known ID
This is an APEX code related question and is specific to a VisualForce controller class. Question I am trying to update a record with a known Acco开发者_JS百科untId. However, when I set the ID in the[详细]
2023-03-20 08:51 分类:问答Strange Salesforce.com SOQL relationship syntax
I\'m looking at an SOQL qu开发者_如何转开发ery that may either be hideously out of date or using some facet of their magical field__r.foreign_table join syntax, the code contains a reference to[详细]
2023-03-18 20:44 分类:问答Programatically get a list of all workspaces (shared+Personal) in VisualForce Page
I have created a custom visualforce page. H开发者_高级运维ere in the controller class i want to get a list of all workspaces in a dropdown so that user can make a choice among where to publish the dat[详细]
2023-03-17 16:36 分类:问答Programatically add/publish a record to the workspace/libraries in salsforce using apex
I have created a custom visualforce page. Here in the controller class i allow the user to create folders.[详细]
2023-03-17 06:24 分类:问答Apex HTTP PUT with Binary Data
开发者_开发技巧I am trying to submit a binary file (Word doc) using HTTP/PUT, however it seems like the encoding is not properly done and it is not sending binary data, it works ok if I just send txt[详细]
2023-03-16 17:44 分类:问答How can we consume external wcf restfull service in salesforce trigger?
I want to know how to consumeexternal wcf restfull service in salesforce apex class ,so that i will call i class开发者_如何学运维 in the triggers for invoking service.Two issues:[详细]
2023-03-16 05:49 分类:问答