• Uma Shankar.ax1909
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hi, I am doing example of outbond message. so, from "salesforce" org to "requestb.in" org it is done. I got the message in xml format. But how this workflow action work for one sf org to another sf org. In my case, I m creting a obj in another sf with one filed. and create one class like ---

global class WorkflowOutBond{   
    @future(callout = true)
    webservice static void mob(String val){
        Workflow_OutBond__c wob = new Workflow_OutBond__c();
        wob.Value__c = val;
        try{
            insert wob;
        }catch(DMLException e){
       
        }    }    }

after this class I crete WSDL file for this class and parse to first account. after parsing this WSDL file, one class is created from where I took  endpoint_x url and placed in outbond message end pont url. when I workflow fire, how I'll get message in another org. and tell me what is the use of "Click for WSDL" also. Your response is highly appreciated.  
Hi,
 
I use this code:::
 
public static void createField(){
    MetadataService.MetadataPort service = createService();     
    MetadataService.CustomField customField = new MetadataService.CustomField();
    customField.fullName = 'Test__c.TestField__c';
    customField.label = 'Test Field';
    customField.type_x = 'Text';
    customField.length = 42;
    MetadataService.AsyncResult[] results = service.create(
       new List<MetadataService.Metadata> { customField });
}
 

 

I want to create this metadataservice.metadataport instance but i can't use. It's gives ERROR invalid types. How can i use this, plz help me, Your response is highly appriciated.

 

 

 

Uma shankar