• Alone
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 4
    Replies

Hi,

Is there any data loader tool to upload into multiple objects and multiple instance of an object for single record in from a CSV file.

 

My file looks as below:

 

Here based on “Exam S7” and “Exam S9” column I need two separate entry for contact child object (obj1).

 

Based on the entry of “Licenses” column I need to populated another Child object of contact (obj2) with two entries, any recommendations appreciated

 

Exm S7  |    Exm S79    |  Exm S9     |    Licenses (single column)

----------------------------------------------------------------------------

Yes        |      ------         |    Yes         |     S63, S7

 

 

Anoop

  • May 30, 2013
  • Like
  • 0

Hi,

 

I need to automate assiging user to managed package license, I was digging through all the objects but failed.

 

Could you please guide me on the object details and is this possible to create a trigger on user which insert/updated users package License information 

 

AB

  • March 28, 2013
  • Like
  • 0

HI,

 

I have catch block and  I am showing the custom error message to User using

ApexPages.addMessage(myMsg); 

 

But is there any way to show and URL along with the message, I was able to create URL dynamically but when I added along with the message it show as simple text, I need to show as link to location.

 

 

My Code:

------------------------

 }catch(QueryException e){
                       
   String URL='http://';
                       

                        URL += ApexPages.currentPage().getHeaders().get('Host');
                        URL += '/'+ApexPages.currentPage().getParameters().get('id');
                                              
                       
                        ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.ERROR,'

                        You do not have access to this Opportunity. '+URL);
                        ApexPages.addMessage(myMsg);                   
                       
               } 

 

 

Anoop

  • October 07, 2011
  • Like
  • 0

Cognizant INDIA is looking for SFDC professional,

 

Work location : Bangalore ( INDIA)

 

Exp 2 to 10 years.

 

please send cv to bhaskaran.anoop@gmail.com

  • May 24, 2011
  • Like
  • 0

Hi All,

 

Any Idea How and where the content files are managed salesforce stores?

 

When I searched it says Files are stored in fully searchable file repositories known as workspaces.

 

But My question is what is mean by file repositories ? Where files actually stored is it in any objects like Attachment and Document object. When I searched all the object related to Content (contentworkspace,contentworkspaceDoc, content Doc)   there is no field which can store BLOB values.

 

Thanks in Advance

Anoop

  • May 23, 2011
  • Like
  • 0

 

I want to create a trigger ( after insert) in custom object, which will updated same custom object by selecting value from another custom objects.

 

I have to upload records into this custom object using data loader with more than 30000 records

 

what all the things  I need to take care before developing trigger in respect of governor limits and how can make sure the trigger will no throw error if once data loader process starts.

 

  • April 08, 2011
  • Like
  • 0

Salesforce not supported creating class for generating security stub by parsing WSDL file which has security header.

I found a class to generate same:

 

 My WSDL has below security header:

--------------------------------------------------------

 

<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

     <UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

      <Username>username123</Username>

     <Password>password123</Password>

    <Nonce>test123</Nonce>

     <wsu:Created>2011-02-25T12:23:39Z</wsu:Created>

   </UsernameToken>

</Security>

 

Class to generate same :

-------------------------------------

Add below sub class:

 

public class Security_element{

 

        public Security_element(String username, String password. String Nonce, String created) {
            usernameToken = new UsernameToken_element(username,password, created);
        }

        public UsernameToken_element usernameToken;

 

        private String[] usernameToken_type_info = new String[]  {'UsernameToken','http://www.w3.org/2001/XMLSchema','element','1','1','false'};

 

        private String[] apex_schema_type_info = new String[]{'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd','true','false'};

 

        private String[] field_order_type_info = new String[]{'usernameToken'};

    }

 

    public class UsernameToken_element {           

        public UsernameToken_element(String username, String password, String Nonce, String Created) {            

                     this.username = username;

                     this.password = password;  

                     this.nonce= Nonce;  
                     this.created = '2011-02-25T12:23:39Z';
                     this.wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';

        }

        public String username;

        public String password;

        public String nonce;
        public String created;
        public String wsu;
       
        private String[] wsu_att_info = new String[] {'xmlns:wsu'};
        
        private String[] username_type_info = new String[]{'Username','http://www.w3.org/2001/XMLSchema','string','1','1','false'};

 

        private String[] password_type_info = new String[]{'Password','http://www.w3.org/2001/XMLSchema','element','1','1','false'};

 

        private String[] created_type_info = new String[]{'wsu:Created','http://www.w3.org/2001/XMLSchema','element','1','1','false'};

 

        private String[] apex_schema_type_info = new String[]{'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd','true','false'};

 

        private String[] field_order_type_info = new String[]{'username','password','Nonce','created'};

    }

 

 

I am not tested above code, please make sure this code generated correct request with security header.

Regards,

Anoop

 

 

 

  • March 05, 2011
  • Like
  • 0

Hi,

 

Can we define and work any frame work in salesforce as similar to Java

  • February 11, 2011
  • Like
  • 0

Use of library files.

How can I create a library file and use in all apex class, any sample code ?

  • February 10, 2011
  • Like
  • 0

Hi,

Is there any data loader tool to upload into multiple objects and multiple instance of an object for single record in from a CSV file.

 

My file looks as below:

 

Here based on “Exam S7” and “Exam S9” column I need two separate entry for contact child object (obj1).

 

Based on the entry of “Licenses” column I need to populated another Child object of contact (obj2) with two entries, any recommendations appreciated

 

Exm S7  |    Exm S79    |  Exm S9     |    Licenses (single column)

----------------------------------------------------------------------------

Yes        |      ------         |    Yes         |     S63, S7

 

 

Anoop

  • May 30, 2013
  • Like
  • 0

 

I want to create a trigger ( after insert) in custom object, which will updated same custom object by selecting value from another custom objects.

 

I have to upload records into this custom object using data loader with more than 30000 records

 

what all the things  I need to take care before developing trigger in respect of governor limits and how can make sure the trigger will no throw error if once data loader process starts.

 

  • April 08, 2011
  • Like
  • 0

Hi Everyone,

 

I'm signing a token using the APEX Crypto.sign() method.

I'm then trying to verify/decrypt the signature in C# .NET but I'm not having much luck.

 

Has anyone had any experience with this? What's the correct approach methodology? (Even if not in .NET but in something else?)

 

I've generated the PKCS8 private key using openssl.exe, and salesforce seems to sign it without error.

I've then tried to use the public key in C# .NET but I'm not seeing the right result.

 

Any thoughts/tips would be appreciated.

 

Thanks,

-lucena

 

Hi All,

I want a input text in my visualforce page. On clicking this inputbox the standard salesforce calendar should popup. Is this possible.

Please note that i need only a input text and not a input field.

I got the below code from the forums.

What are the values that i have to pass in the highlighted part of the code. Is this possible in Visualforce.

Code:
<a href="javascript&colon;openPopupFocus

('/home/calendar.jsp—form=form1&field=sdate&mo=0&callonchange=true', '_blank', 186, 170, 'width=186,height=170,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);"

class="datePicker"

title="Pick A Date (New Window)"

onclick="setLastMousePosition(event)"

id="sdatePopCal">

<img src="/s.gif" alt="Pick A Date (New Window)" class="datePickerIcon">

</a>

 Thanks,
Edwin