• Dinesh Khandelwal
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 3
    Replies
Hi All, we have couple of public files loaded in salesforce. we want to share them via articles to community users. so far this works fine but the file opens with salesforce URL. we want to mask the URL with company domain (same way we did for site). 

is this possible ?


Thanks a lot in advance !
 
Hi All, I have setup an open Id auth provider and trying to establish SSO for community user. All configurations done at salesforce and Auth Provider. 
User-added imageI enabled login using Dispatcher (my OpenId auth provider). my auth provider login page sends back this error - No_Oauth_Token: Access token was not returned . I am trying to find the full response but not sure where it will be captured. There seems to be no way to find the logs or full response. 

Auth provider team tested their configuration through some client and seems like they are sending the proper JSON response with access token. Not sure what exactly is wrong. 
Hi All,
I have created a webservice class
global class PublishBBProvisioningEvents{
	webService static String sendIPAddress(String extId, 
                                                           String serviceName,
                                                           Boolean isDynamic, 
                                                           String IPRouteString ) {
	
		Provisioning_Updates__c orderUpdaterecord = new Provisioning_Updates__c();
	       
	        if(extId!=null) orderUpdaterecord.extId__c = extId;
		if(serviceName!=null) orderUpdaterecord.Service_name__c = name;
		if(isDynamic!=null) orderUpdaterecord. isDynamic__c = isDynamic;
		if(IPRouteString!=null) orderUpdaterecord. IP_iprecord__c=IPRouteString;
	       insert orderUpdaterecord;
	       return 'SUCCESS';
	}
}
When client application sends all values in same sequence, it works well. But if client application do not send values in sequence or don’t send second parameter, it throws illegal assignment  from Boolean to string error

if they send below , it works well
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://soap.sforce.com/schemas/class/PublishBBProvisioningEvents">
   <soapenv:Header>
      <pub:SessionHeader>
         <pub:sessionId>00D110000006EVE!ARMAQA8XOw62xM17pgWzDOq9fJMbPkHeKB7PvcbNFiCClV4onxTzVRl2EH7FyCyZTNhFOrxIIpJY2cw4w0md9dkXpuAO2lyu</pub:sessionId>
      </pub:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <pub:sendIPAddress>
         <pub:extId>954899952</pub:extId>
         <pub:serviceName>1234</pub:serviceName>
         <pub:isDynamic>true</pub:isDynamic>
         <pub:IPRouteString>10.12.23.34/28</pub:IPRouteString>
      </pub:sendIPAddress>
   </soapenv:Body>
</soapenv:Envelope>

but if they send below, it throws error
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://soap.sforce.com/schemas/class/PublishBBProvisioningEvents">
   <soapenv:Header>
      
      <pub:SessionHeader>
         <pub:sessionId>00D110000006EVE!ARMAQA8XOw62xM17pgWzDOq9fJMbPkHeKB7PvcbNFiCClV4onxTzVRl2EH7FyCyZTNhFOrxIIpJY2cw4w0md9dkXpuAO2lyu</pub:sessionId>
      </pub:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <pub:sendIPAddress>
         <pub:extId>954899952</pub:extId>
         <pub:isDynamic>true</pub:isDynamic>
         <pub:IPRouteString>10.12.23.34/28</pub:IPRouteString>
      </pub:sendIPAddress>
   </soapenv:Body>
</soapenv:Envelope>

Or the below
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="http://soap.sforce.com/schemas/class/PublishBBProvisioningEvents">
   <soapenv:Header>
      
      <pub:SessionHeader>
         <pub:sessionId>00D110000006EVE!ARMAQA8XOw62xM17pgWzDOq9fJMbPkHeKB7PvcbNFiCClV4onxTzVRl2EH7FyCyZTNhFOrxIIpJY2cw4w0md9dkXpuAO2lyu</pub:sessionId>
      </pub:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <pub:sendIPAddress>
         <pub:extId>954899952</pub:extId>
         <pub:isDynamic>true</pub:isDynamic>
	 <pub:serviceName>1234</pub:serviceName>
         <pub:IPRouteString>10.12.23.34/28</pub:IPRouteString>
      </pub:sendIPAddress>
   </soapenv:Body>
</soapenv:Envelope>

Can anyone suggest what the problem is?

Thanks
Dinesh
 
My apex:pageBlockTable is inside pageblocksectionitem. and I am not able to specify the column width, can any one suggest the solution

<apex:page standardController="Batch_Job__c" extensions="AvailabilityCheckController" tabStyle="Line_Availability__c" cache="true">
  <apex:form id="avalForm">
    <apex:SectionHeader title="Line Availability Check"/>
    <apex:pageMessages showDetail="false"/>
    <apex:pageBlock id="avalPageBlock1">
      <apex:pageBlockButtons location="bottom">
        <apex:commandButton value="Submit File" action="{!processCSVFile}"/>
      </apex:pageBlockButtons>
      
      <apex:actionRegion >
      <apex:pageBlockSection title="Service Check Type" columns="1" collapsible="false" rendered="true" id="pageBlock1"> 
          <apex:selectRadio value="{!serviceCheckType}" >
            <apex:selectOption itemvalue="Line" itemLabel="Line Check"/> 
              <apex:selectOption itemvalue="Broadband" itemLabel="Broadband Check"/>
              <apex:selectOption itemvalue="Line&Broadband" itemLabel="Both Line & Broadband Checks"/>
              <apex:selectOption itemvalue="Broadband2" itemLabel="New Broadband Check" rendered="{!if($User.Email !='neil.jones@salesforce.com',false,true)}"/>
              <apex:actionSupport event="onchange" reRender="lineAvailabilityRequests" />
          </apex:selectRadio>
      </apex:pageBlockSection>  
      </apex:actionRegion>
      
      <apex:pageBlockSection title="Upload File" columns="1" id="pageBlock2"> 
        <apex:pageBlockSectionItem >
          <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" contentType="text/csv" accept="text/csv"/>
        </apex:pageBlockSectionItem>
      </apex:pageBlockSection>
    </apex:pageBlock>
    <apex:pageBlock id="avalPageBlock2">
      <apex:pageBlockButtons location="bottom">
        <apex:commandButton value="Submit Rows" action="{!submitRows}"/>
      </apex:pageBlockButtons>
      <apex:pageBlockSection title="Enter Details" id="lineAvailabilityRequests" columns="2"> 
        <apex:pageBlockSectionItem >
          <apex:pageBlockTable value="{!lineAvailabilityRequests}" var="lar"  columns="6" columnsWidth="10%,5%,5%,20%,30%,30%">
            <apex:column headerValue="Directory Number" >
              <apex:inputField value="{!lar.Directory_Number__c}" />
            </apex:column>
            <apex:column headerValue="Post Code" width="5%" style="width:5%">
              <apex:inputField value="{!lar.Post_Code__c}" />
            </apex:column>
            <apex:column headerValue="House No" rendered="{!serviceCheckType!='Line'}" width="5%" style="width:5%">
              <apex:inputField value="{!lar.House_No__c}" />
            </apex:column>
            <apex:column headerValue="House Name" rendered="{!serviceCheckType!='Line'}" width="20%">
              <apex:inputField value="{!lar.House_Name__c}"/>
            </apex:column>
            <apex:column headerValue="Street" rendered="{!serviceCheckType!='Line'}" width="30%">
              <apex:inputField value="{!lar.Street__c}"/>
            </apex:column>
            <apex:column headerValue="Town" rendered="{!serviceCheckType!='Line'}" width="30%">
              <apex:inputField value="{!lar.Town__c}"/>
            </apex:column>
          </apex:pageBlockTable>
        </apex:pageBlockSectionItem>
          </apex:pageBlockSection>
      <apex:pageBlockSection >
      <apex:pageBlockSectionItem > 
            <apex:inputText value="{!rowsToAdd}" size="1"/>
            <apex:commandButton value="Add Rows" action="{!addRows}"/>
         </apex:pageBlockSectionItem> 

        </apex:pageBlockSection>
    </apex:pageBlock>
  </apex:form>
</apex:page>


Hi,

I want to create and host a webservice on salesforce and same will be used by one of our back end system. Basically this is done and working fine also. But now we have a new requirement where back end system will send a security key in header of SOAP msg and I want to access that. Can some one tell me is it feasible? Can we do that?

Dinesh
Hi all, I want to generate a XML based on Schema, which is available as a string input.

Sample schema is as below but it will not be fixed always,
<?xml version="1.0" standalone="yes"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="INPUT_MAIN" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="INPUT_MAIN">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PROCESS_ID" type="xs:int" />
              <xs:element name="ORDER_ID" type="xs:int" />
              <xs:element name="ORDER_NO" type="xs:string" minOccurs="0" />
              <xs:element name="ORDER_DESCRIPTION" type="xs:string" minOccurs="0" />
              <xs:element name="ORDER_SHORT_DESCRIPTION" type="xs:string" minOccurs="0" />
              <xs:element name="REMARKS" type="xs:string" minOccurs="0" />
              <xs:element name="START_DATE" type="xs:string" minOccurs="0" />
              <xs:element name="END_DATE" type="xs:string" minOccurs="0" />
              <xs:element name="CUSTOMER" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//INPUT_MAIN" />
      <xs:field xpath="PROCESS_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>

How can i generate the XML which should look like below
<?xml version="1.0" encoding="UTF-8"?>
   <NewDataSet>
         <INPUT_MAIN>
               <PROCESS_ID>9</PROCESS_ID>
               <ORDER_ID>9</ORDER_ID>
               <ORDER_NO>test string</ORDER_NO>
               <ORDER_DESCRIPTION>test string</ORDER_DESCRIPTION>
               <ORDER_SHORT_DESCRIPTION>test string</ORDER_SHORT_DESCRIPTION>
               <REMARKS>test string</REMARKS>
               <START_DATE>test string</START_DATE>
               <END_DATE>test string</END_DATE>
               <CUSTOMER>test string</CUSTOMER>
         </INPUT_MAIN>
   </NewDataSet>

and the values will be fetched from order custom object.

The main problem is to build the XML.. any idea how can we achieve this.

Thanks
dinesh
Hi All, I have setup an open Id auth provider and trying to establish SSO for community user. All configurations done at salesforce and Auth Provider. 
User-added imageI enabled login using Dispatcher (my OpenId auth provider). my auth provider login page sends back this error - No_Oauth_Token: Access token was not returned . I am trying to find the full response but not sure where it will be captured. There seems to be no way to find the logs or full response. 

Auth provider team tested their configuration through some client and seems like they are sending the proper JSON response with access token. Not sure what exactly is wrong. 
I'm trying to setup openId Connect custom auth provider. WHen selecting apex class for registration handler, I would like to see which user data apex class gets from my IDP userInfo. When I set debug logs to apex class and try to use some of the test URLs, there is no log in debug logs. 

Also, since this apex class is part of whole authentication process with redirect calls in between IDP and salesforce it is not possible to debug with developer console. 

Any idea how to catch this kind of logs?
Hi all, I want to generate a XML based on Schema, which is available as a string input.

Sample schema is as below but it will not be fixed always,
<?xml version="1.0" standalone="yes"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="INPUT_MAIN" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="INPUT_MAIN">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PROCESS_ID" type="xs:int" />
              <xs:element name="ORDER_ID" type="xs:int" />
              <xs:element name="ORDER_NO" type="xs:string" minOccurs="0" />
              <xs:element name="ORDER_DESCRIPTION" type="xs:string" minOccurs="0" />
              <xs:element name="ORDER_SHORT_DESCRIPTION" type="xs:string" minOccurs="0" />
              <xs:element name="REMARKS" type="xs:string" minOccurs="0" />
              <xs:element name="START_DATE" type="xs:string" minOccurs="0" />
              <xs:element name="END_DATE" type="xs:string" minOccurs="0" />
              <xs:element name="CUSTOMER" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//INPUT_MAIN" />
      <xs:field xpath="PROCESS_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>

How can i generate the XML which should look like below
<?xml version="1.0" encoding="UTF-8"?>
   <NewDataSet>
         <INPUT_MAIN>
               <PROCESS_ID>9</PROCESS_ID>
               <ORDER_ID>9</ORDER_ID>
               <ORDER_NO>test string</ORDER_NO>
               <ORDER_DESCRIPTION>test string</ORDER_DESCRIPTION>
               <ORDER_SHORT_DESCRIPTION>test string</ORDER_SHORT_DESCRIPTION>
               <REMARKS>test string</REMARKS>
               <START_DATE>test string</START_DATE>
               <END_DATE>test string</END_DATE>
               <CUSTOMER>test string</CUSTOMER>
         </INPUT_MAIN>
   </NewDataSet>

and the values will be fetched from order custom object.

The main problem is to build the XML.. any idea how can we achieve this.

Thanks
dinesh