• lopic bowwer
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 8
    Replies
Hi,

We generated an Apex class from a WSDL file and I am trying to call one of the method in the generated apex class from an existing class. Below are the method generated from WSDL and I need to pass XML and parse the response which is also in the form of XML. I am having trouble figuring out how to send the data. Anyone can help?

I need to call GetCustomerInfo method, down below is the XML I need to send.
public String GetCustomerInfo(someService.XMLinput_Request XMLinput) {
		someService.GetCustomerInfo_element request_x = new someService.GetCustomerInfo_element();
		request_x.XMLinput = XMLinput;
		someService.GetCustomerInfoResponse_element response_x;
		Map<String, someService.GetCustomerInfoResponse_element> response_map_x = new Map<String, someService.GetCustomerInfoResponse_element>();
		response_map_x.put('response_x', response_x);
		WebServiceCallout.invoke(
		  this,
		  request_x,
		  response_map_x,
		  new String[]{endpoint_x,
		  'http://SomeTestService.com/GetCustomerInfo',
		  'http://SomeTestService.com/',
		  'GetCustomerInfo',
		  'http://SomeTestService.com/',
		  'GetCustomerInfoResponse',
		  'someService.GetCustomerInfoResponse_element'}
		);
		response_x = response_map_x.get('response_x');
		return response_x.GetCustomerInfoResult;
	}
	
    public class XMLinput_Request {
        private String[] apex_schema_type_info = new String[]{'http://SomeTestService.com/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
	
    public class GetCustomerInfo_element {
        public someService.XMLinput_Request XMLinput;
        private String[] XMLinput_type_info = new String[]{'XMLinput','http://SomeTestService.com/',null,'0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://SomeTestService.com/','true','false'};
        private String[] field_order_type_info = new String[]{'XMLinput'};
    }

    public class GetCustomerInfoResponse_element {
        public String GetCustomerInfoResult;
        private String[] GetCustomerInfoResult_type_info = new String[]{'GetCustomerInfoResult','http://SomeTestService.com/',null,'0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://SomeTestService.com/','true','false'};
        private String[] field_order_type_info = new String[]{'GetCustomerInfoResult'};
    }	
	
	
      <some:GetCustomerInfo>
         <!--Optional:-->
         <some:XMLinput>
            <InputValues>
               <Attribute1 value=""/>
               <Attribute2 value=""/>
               <Attribute3 value=""/>
               <Files>
                  <File name="Customers">
                     <Items>
                        <Item key="12345678"/>
                     </Items>
                  </File>
               </Files>
            </InputValues>
         </some:XMLinput>
      </some:GetCustomerInfo>	
	  
	  
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetCustomerInfoResponse xmlns="http://SomeTestService.com/">
         <GetCustomerInfoResult><![CDATA[<?xml version="1.0"?>
<ReceivedResponse>
  <Files>
    <File myfile="Customers">
      <Item myitem="12345678">
        <OuterItem>
          <OuterDetail>
            <Inner1>ABCD</Inner1>
            <Inner2>9090</Inner2>
          </OuterDetail>
        </OuterItem>
        <CustomerNumber>APP0064W000016QBQ7AAK</CustomerNumber>
        <CustomerName>Messner Reeves LLP</CustomerName>
      </Item>
    </File>
  </Files>
</ReceivedResponse>]]></GetCustomerInfoResult>
      </GetCustomerInfoResponse>
   </soap:Body>
</soap:Envelope>

 
how can I create salesforce report on Account object chatter feed which displays text chatter posts and field changes both.
Similar report I need for meeting notes obect as well

I currenty investigating a issue where one org seem to be automapping a column from one table to another table. 

The tables I am talking about is CartDeliveryGroup and CartDeliveryGroupMethod.

CartDeliveryGroupMethod has a lookup to CartDeliveryGroup and both has a column called DeliveryMethodId.

 

As soon a record on CartDeliveryGroupMethod is created, the DeliveryMethodId is updated on the CartDeliveryGroup  

Which intended behaviour, but I don't see this behaviour on another org, which makes me question why is that the case?

Can this be turned off somehow - if so how?

 

Hi, everyone
I have question to customize Localize Strings in iOS live chat SDK

reference from this link: https://forcedotcom.github.io/ServiceSDK-iOS/releases/api/234.1/servicechatstringconstants.html

I create Localizable.strings in my project and set value by example as below
"ServiceCloud.Chat.Dialog.General.Title" = "Live Chat2"

but when I launch my app the title bar of chat don't change

I'm not sure if I set it correctly. Please give me some advice to customize this string.

 
I dleleted the original question I posted as I had the wrong criteria.

We have a Process Builder that is sending a pre class confirmation email 7 days prior to the class start date. Part of the criteria is that the scheduling Status=Completed so why would emails still be sent when the criteria on the Training Event = Void?

In one example I'm looking at the TE was created on 5/22/23 with a class start date initially of 8/9/23. The start date, while 'In-Discussion' status, was changed around a little but always occuring in early August and ended up being set to 8/5/23. The Scheduling status was then set to Completed on 6/15/23. Then on 7/6/23 the Scheduling Status was changed from Completed to VOID.

So why might the email still have sent 7 days prior to 8.5.23 when the status no longer matched the criteria=Completed when it was changed to Void on 7/6/23?

Does the system check the criteria one last time to make sure everything still matches before sending the email? That's what a Salesforce support agent told me years ago so not sure if that's true today but would seem if was checking on 7/29/23 it would have seen the VOID status no longer matched the criteria Scheduling Status=Completed. And thus the email should not have been sent.

So any ideas at all why the email was sent out ? 
 
Hi 
Similar questions are raised in many threats but the solutions proposed do not fit my case. I have got a simple SOQL: 

Select WorkOrder.Id from TimeSheetEntry where WorkOrder.Id in (Select Id from WorkOrder Where...)

The error is The left operand 'WorkOrder.Id' cannot have more than one level of relationships. 

If I provide hardcoded Orders it works, so the relationship exists and is referred to properly as I understand. How to use the subquery?

As a Admin I'm able to see the account access, contact access,case access and opportunity access when I click on add team members on account's related list tab. User-added image
When i login as other profile I'm unable to see the account access, contact access,case access and opportunity access as shown in the image below, the profile has edit access to all the fields.
User-added image