• Sadmin
  • NEWBIE
  • 0 Points
  • Member since 2008

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

I created a time based workflow which will trigger when status=submitted and it will send an email after 2 hrs.

With in this 2 hours if status is changing from submitted to approved or rejected(submitted,approved,rejected are 3 picklist values.). The email should not trigger.

We are using two different methods to update the status field,
One using visual force and other using workflow approval email reply back.
Whenever status is changing to rejected or approved(other than submitted) Its not triggering email.(as usual)
But whenever we are changing the field using workflow approval email reply back,The email is still triggering

Any solution will be appreciated.Its very urgent.



  • August 22, 2008
  • Like
  • 0
Hi
 
I have written the below code in the controller.

public void init()
{
Bid=System.currentPageReference().getParameters().get('BilltoId');
Rid=System.currentPageReference().getParameters().get('ResellerId');
Coid=System.currentPageReference().getParameters().get('CopyId');
}

While writing test methods i am not able to pass the parameters.Its showing code does'nt have test coverage

Any help will be appreciated.

Thanks in advance.
  • August 14, 2008
  • Like
  • 0
Hi,

I am using blackberry to access account in saleforce.

But i am able to see only account name in the Account tab page.

Is it possible to list some more fields also in the home page of account tab in blackberry?Please reply soon its urgent.

Thanks

Hi,


I have a list to store a list of records.I wanted to display the records with name starts with A.

Is it possible?If so how can i do it?


Thanks

Hi ,

We have a requirement like ,An object is having a status filed which is having values like submitted,Approved,rejected.

Whenever a record of that object is creating, an automatic mail should trigger to the record owner.

When the record owner replies with Approved or rejected. Then status in the record should change to the same.

I tried to use the workflow approvals for this. But it will not trigger automattivally.User need to submit it.

In this also when i i tried to reply the mail as approved ,Approval action is not happening? What could be the reason?

If anybody worked on this issue please suggest the solution.

Hi ,

I am trying to parse WSDL to Apex.After parsing its showing the error like.
Apex generation failed.
Error: Unsupported WSDL. Found more than one part for message SPAProduct_SPAProductPrice_response

The WSDL is:-

<?xml version="1.0" encoding="UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:enterprise.soap.sforce.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:partyInfo="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd" xmlns:ns0="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd" xmlns:ns1="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd3" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SForceSeagateSPAService" targetNamespace="urn:enterprise.soap.sforce.com">
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pi="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd" targetNamespace="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified">
            <complexType name="party">
                <sequence>
                    <element name="domain" type="xsd:string" minOccurs="0"/>
                    <element name="name" type="xsd:string"/>
                </sequence>
            </complexType>
            <element name="PartyInfo">
                <complexType>
                    <sequence>
                        <element name="from" type="pi:party"/>
                        <element name="to" type="pi:party"/>
                        <element name="operationID" type="xsd:string"/>
                        <element name="operationType" type="xsd:string"/>
                        <element name="transactionID" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
        <xs:schema xmlns="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd" targetNamespace="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
            <xs:element name="SPARequest">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="SPARequestHeader">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="userID" type="xs:string" minOccurs="0"/>
                                    <xs:element name="sessionID" type="xs:string" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="SPARequestBody">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="customerNumber" type="xs:string"/>
                                    <xs:element name="productNumber" type="xs:string" minOccurs="0"/>
                                    <xs:element name="condition" type="xs:string" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
        <xs:schema xmlns="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd3" targetNamespace="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd3" elementFormDefault="qualified" attributeFormDefault="unqualified">
            <xs:element name="SPAProductResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="SPAProductResponseHeader">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="userID" type="xs:string" minOccurs="0"/>
                                    <xs:element name="sessionID" type="xs:string" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="SPAProductResponseBody">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="customerNumber" type="xs:string"/>
                                    <xs:element name="productNumber" type="xs:string" minOccurs="0"/>
                                    <xs:element name="standardPrice" type="xs:double" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:portType name="SPAProduct">
        <wsdl:documentation>BCWSDL:SPAProduct</wsdl:documentation>
        <wsdl:operation name="SPAProductPrice">
            <wsdl:documentation>BCWSDL:SPAProductPrice</wsdl:documentation>
            <wsdl:input message="tns:SPAProduct_SPAProductPrice_request"/>
            <wsdl:output message="tns:SPAProduct_SPAProductPrice_response"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SPAProduct__1.0" type="tns:SPAProduct">
        <wsdl:documentation>BCWSDL:1.0</wsdl:documentation>
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="SPAProductPrice">
            <soap:operation style="document"/>
            <wsdl:input>
                <soap:body parts="body___1.0" use="literal"/>
                <soap:header part="PartyInfo" message="tns:SPAProduct_SPAProductPrice_request" use="literal"/>
                <soap:header part="head___1.0" message="tns:SPAProduct_SPAProductPrice_request" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="body___1.0" use="literal"/>
                <soap:header part="head___1.0" message="tns:SPAProduct_SPAProductPrice_response" use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:message name="SPAProduct_SPAProductPrice_request">
        <wsdl:part name="body___1.0" element="ns0:SPARequest"/>
        <wsdl:part name="PartyInfo" element="partyInfo:PartyInfo"/>
        <wsdl:part name="head___1.0" element="partyInfo:PartyInfo"/>
    </wsdl:message>
    <wsdl:message name="SPAProduct_SPAProductPrice_response">
        <wsdl:part name="body___1.0" element="ns1:SPAProductResponse"/>
        <wsdl:part name="head___1.0" element="partyInfo:PartyInfo"/>
    </wsdl:message>
    <wsdl:service name="SForceSeagateSPAServiceService">
        <wsdl:port name="SPAProduct__1.0_HTTPSPort" binding="tns:SPAProduct__1.0">
            <soap:address location="https://sibgate.seagate.com:7114/SOAP"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
Hi,

I have created some visual force pages which are not working in I.E ,but woking fine in mozilla.What could be the problem?

Thanks
Hi

 
I downloaded Blackberry 8703 Simulator. I am able to login to the Production from the simulator.

Now I am trying to test the mobile configuration created in sandbox. Is it possible to test this?

If so the where I need to change the settings in the blackberry simulator to access sandbox.


Hi,

Is it possible to
dinamically create rows in visual force table?

Thanks
Hi ,

I am trying to call an external web service from Visual force. I have taken a WSDL from http://strikeiron.com/ .This Web service provides DNS lookup information from a server name. I parsed the WSDL to the apex class and  trying to call the request method in the Converted class from visual force. Visual force page Contains a button .On click ,it should display the dns name of Server passing('www.google.com') But whenever I am clicking on it .Getting an error:-"System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: No user identifier provided faultcode=soap:Client faultactor="



//Generated by wsdl2apex

public class tempuriOrg {
    public class ArrayOfString {
        public String[] string_x;
        private String[] string_x_type_info = new String[]{'string','http://www.w3.org/2001/XMLSchema','string','0','-1','true'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'string_x'};
    }
    public class DNSInfo {
        public String HostName;
        public tempuriOrg.ArrayOfString Aliases;
        public tempuriOrg.ArrayOfString AddressList;
        private String[] HostName_type_info = new String[]{'HostName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] Aliases_type_info = new String[]{'Aliases','http://tempuri.org/','ArrayOfString','0','1','false'};
        private String[] AddressList_type_info = new String[]{'AddressList','http://tempuri.org/','ArrayOfString','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'HostName','Aliases','AddressList'};
    }
    public class DNSLookupResponse_element {
        public tempuriOrg.DNSInfo DNSLookupResult;
        private String[] DNSLookupResult_type_info = new String[]{'DNSLookupResult','http://tempuri.org/','DNSInfo','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'DNSLookupResult'};
    }
    public class DNSSoap {
        public String endpoint_x = 'http://ws.strikeiron.com/relauto/iplookup/DNS';
        public wsStrikeironCom.SubscriptionInfo SubscriptionInfo;
        public wsStrikeironCom.LicenseInfo LicenseInfo;
        private String SubscriptionInfo_hns = 'SubscriptionInfo=http://ws.strikeiron.com';
        private String LicenseInfo_hns = 'LicenseInfo=http://ws.strikeiron.com';
        private String[] ns_map_type_info = new String[]{'http://ws.strikeiron.com', 'wsStrikeironCom', 'http://tempuri.org/', 'tempuriOrg'};
        public tempuriOrg.DNSInfo DNSLookup(String server) {
            tempuriOrg.DNSLookup_element request_x = new tempuriOrg.DNSLookup_element();
            tempuriOrg.DNSLookupResponse_element response_x;
            request_x.server = server;
            Map<String, tempuriOrg.DNSLookupResponse_element> response_map_x = new Map<String, tempuriOrg.DNSLookupResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/DNSLookup',
              'http://tempuri.org/',
              'DNSLookup',
              'http://tempuri.org/',
              'DNSLookupResponse',
              'tempuriOrg.DNSLookupResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.DNSLookupResult;
        }
        public void GetRemainingHits() {
            wsStrikeironCom.GetRemainingHits_element request_x = new wsStrikeironCom.GetRemainingHits_element();
            wsStrikeironCom.GetRemainingHitsResponse_element response_x;
            Map<String, wsStrikeironCom.GetRemainingHitsResponse_element> response_map_x = new Map<String, wsStrikeironCom.GetRemainingHitsResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://ws.strikeiron.com/relauto/iplookup/DNS/GetRemainingHits',
              'http://ws.strikeiron.com',
              'GetRemainingHits',
              'http://ws.strikeiron.com',
              'GetRemainingHitsResponse',
              'wsStrikeironCom.GetRemainingHitsResponse_element'}
            );
            response_x = response_map_x.get('response_x');
        }
    }
    public class DNSLookup_element {
        public String server;
        private String[] server_type_info = new String[]{'server','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'server'};
    }
}

It generated one more class wsStrikeironCom inside that I have given the userid and password inside a method called Which is


public class RegisteredUser {
        public String UserID='rachana.raveendran@gmail.com';
        public String Password='*******';
        private String[] UserID_type_info = new String[]{UserID,'http://www.w3.org/2001/XMLSchema','string','0','1','true'};
        private String[] Password_type_info = new String[]{Password,'http://www.w3.org/2001/XMLSchema','string','0','1','true'};
        private String[] apex_schema_type_info = new String[]{'http://ws.strikeiron.com','true'};
        private String[] field_order_type_info = new String[]{UserID,Password};
    }




Here is my visual force code

public class Temperature
{
tempuriOrg.DNSInfo output;
public void recordReplicator()
{
tempuriOrg.DNSSoap stub = new tempuriOrg.DNSSoap(); String nserver='www.google.com'; System.debug('Server Ips'); output= stub.DNSLookup(nserver); System.Debug('output'+output); } public tempuriOrg.DNSInfo getOutput() { return output; } }

Remote site is created for http://ws.strikeiron.com

Please help me to solve this

Thanks


Hi ,

We have a requirement like ,An object is having a status filed which is having values like submitted,Approved,rejected.

Whenever a record of that object is creating, an automatic mail should trigger to the record owner.

When the record owner replies with Approved or rejected. Then status in the record should change to the same.

I tried to use the workflow approvals for this. But it will not trigger automattivally.User need to submit it.

In this also when i i tried to reply the mail as approved ,Approval action is not happening? What could be the reason?

If anybody worked on this issue please suggest the solution.

Hi

 
I downloaded Blackberry 8703 Simulator. I am able to login to the Production from the simulator.

Now I am trying to test the mobile configuration created in sandbox. Is it possible to test this?

If so the where I need to change the settings in the blackberry simulator to access sandbox.


Hi ,

I am trying to call an external web service from Visual force. I have taken a WSDL from http://strikeiron.com/ .This Web service provides DNS lookup information from a server name. I parsed the WSDL to the apex class and  trying to call the request method in the Converted class from visual force. Visual force page Contains a button .On click ,it should display the dns name of Server passing('www.google.com') But whenever I am clicking on it .Getting an error:-"System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: No user identifier provided faultcode=soap:Client faultactor="



//Generated by wsdl2apex

public class tempuriOrg {
    public class ArrayOfString {
        public String[] string_x;
        private String[] string_x_type_info = new String[]{'string','http://www.w3.org/2001/XMLSchema','string','0','-1','true'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'string_x'};
    }
    public class DNSInfo {
        public String HostName;
        public tempuriOrg.ArrayOfString Aliases;
        public tempuriOrg.ArrayOfString AddressList;
        private String[] HostName_type_info = new String[]{'HostName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] Aliases_type_info = new String[]{'Aliases','http://tempuri.org/','ArrayOfString','0','1','false'};
        private String[] AddressList_type_info = new String[]{'AddressList','http://tempuri.org/','ArrayOfString','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'HostName','Aliases','AddressList'};
    }
    public class DNSLookupResponse_element {
        public tempuriOrg.DNSInfo DNSLookupResult;
        private String[] DNSLookupResult_type_info = new String[]{'DNSLookupResult','http://tempuri.org/','DNSInfo','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'DNSLookupResult'};
    }
    public class DNSSoap {
        public String endpoint_x = 'http://ws.strikeiron.com/relauto/iplookup/DNS';
        public wsStrikeironCom.SubscriptionInfo SubscriptionInfo;
        public wsStrikeironCom.LicenseInfo LicenseInfo;
        private String SubscriptionInfo_hns = 'SubscriptionInfo=http://ws.strikeiron.com';
        private String LicenseInfo_hns = 'LicenseInfo=http://ws.strikeiron.com';
        private String[] ns_map_type_info = new String[]{'http://ws.strikeiron.com', 'wsStrikeironCom', 'http://tempuri.org/', 'tempuriOrg'};
        public tempuriOrg.DNSInfo DNSLookup(String server) {
            tempuriOrg.DNSLookup_element request_x = new tempuriOrg.DNSLookup_element();
            tempuriOrg.DNSLookupResponse_element response_x;
            request_x.server = server;
            Map<String, tempuriOrg.DNSLookupResponse_element> response_map_x = new Map<String, tempuriOrg.DNSLookupResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/DNSLookup',
              'http://tempuri.org/',
              'DNSLookup',
              'http://tempuri.org/',
              'DNSLookupResponse',
              'tempuriOrg.DNSLookupResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.DNSLookupResult;
        }
        public void GetRemainingHits() {
            wsStrikeironCom.GetRemainingHits_element request_x = new wsStrikeironCom.GetRemainingHits_element();
            wsStrikeironCom.GetRemainingHitsResponse_element response_x;
            Map<String, wsStrikeironCom.GetRemainingHitsResponse_element> response_map_x = new Map<String, wsStrikeironCom.GetRemainingHitsResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://ws.strikeiron.com/relauto/iplookup/DNS/GetRemainingHits',
              'http://ws.strikeiron.com',
              'GetRemainingHits',
              'http://ws.strikeiron.com',
              'GetRemainingHitsResponse',
              'wsStrikeironCom.GetRemainingHitsResponse_element'}
            );
            response_x = response_map_x.get('response_x');
        }
    }
    public class DNSLookup_element {
        public String server;
        private String[] server_type_info = new String[]{'server','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'server'};
    }
}

It generated one more class wsStrikeironCom inside that I have given the userid and password inside a method called Which is


public class RegisteredUser {
        public String UserID='rachana.raveendran@gmail.com';
        public String Password='*******';
        private String[] UserID_type_info = new String[]{UserID,'http://www.w3.org/2001/XMLSchema','string','0','1','true'};
        private String[] Password_type_info = new String[]{Password,'http://www.w3.org/2001/XMLSchema','string','0','1','true'};
        private String[] apex_schema_type_info = new String[]{'http://ws.strikeiron.com','true'};
        private String[] field_order_type_info = new String[]{UserID,Password};
    }




Here is my visual force code

public class Temperature
{
tempuriOrg.DNSInfo output;
public void recordReplicator()
{
tempuriOrg.DNSSoap stub = new tempuriOrg.DNSSoap(); String nserver='www.google.com'; System.debug('Server Ips'); output= stub.DNSLookup(nserver); System.Debug('output'+output); } public tempuriOrg.DNSInfo getOutput() { return output; } }

Remote site is created for http://ws.strikeiron.com

Please help me to solve this

Thanks


I have following issue:
when I create a new Account I first would like to fetch the Account data from an external web service
and populate the Account with the result of my web service call. My idea is to add a button (GetAccountData) that would trigger the
web service (with a Controller ?), get the response and display the data on the Account Tab.
is there a way  in Visualforce to add such a functionality ?