• RamyaKrishna
  • NEWBIE
  • 125 Points
  • Member since 2011

  • Chatter
    Feed
  • 5
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 38
    Questions
  • 48
    Replies

Hi,

 

What is an outbound msg? where we use it exactly?

Could you please share an example to understand this.

 

Thanks,

ANKITA

Hi,

 

Can any one tell me the difference between Action Function and Action Support?

If you don't mind, plz send sample codes for these two functions except from the component reference.

 

Thanks,

Ramya

Can any one explain me about sforce.connection in API calls.

Please send sample example to understand this?

I saw the document but not getting whole knowledge.

 

Thanks


Hi,

 

How can i use retrieve() method to access the data from Metadata API?

 

How can i access the data from  meta data Api  using javascript call?

 

 

Thanks

Hi,

 

I am new to apex triggers.Could you please send some samples on triggers?

 

Thanks

Hi,

 

I am working on Salesforce to Salesforce.

In this process i made a connection from my org to another org.

Now, i deactived the connection status.

How can i active the same connection status.

 

Thanks,

Ramya

hi,

 

Using getkeyprefix() method i can able to get the object id.

How can i get the field id ?

(I have a custom object E__c with field city__c. Using getkeyprefix() i got object id. but i need to get the field id)

 

Can u suggest me.

 

 

 

 

Hi,

 

I am working on Jitter bit Integration tool.

Using jitterbit, i performed create,upsert and update operations.

But i couldn't find any feature to delete the salesforce object records?

But i am sure we can perform delete also using jitter bit?

Please help me, How can i delete the salesforce object records from the jitter bit?

 

Thanks,

Ramya

Constructing a Dynamic VF page with Custom Object Fields based on Row Number and Col Number:

1. Created a custom object with the fields,
    FieldName__c, ObjectName__c,RowNumber__c,ColNumber__c.
  In FieldName__c and ObjectName__c, add the field api name and Object api name of another custom object.
To build the dynamic VF page, i used the following scenario.
Step1:
Here i prepared 2 maps to the following.
Map1: In Map1 i got all the field api names & object api names, whose contains the colNumber__c value '1'
Map2: In Map2 i got all the field api names & object api names, whose contains the colNumber__c value '2'
Step2:
I could display dynamically all the fields using these 2 maps, from the custom object on a VF page.
(Till the designing part completed)
Step3:
There is a problem while working with Save functionality.
(Previous, I build Dynamic VF page with only one Map. At that time i did not face this problem. All records are upserting very fine)
But in this scenario i used 2 maps, so i am getting a problem while upserting the records.
Map1 Returns:
system.debug('*****map1*****'+lstDynamicWrapper1);
result:
******map1****{Product_Attribute__c=DynaPageController.DynamicWrapper:[fields=(ProductName__c, Type__c), objectname=Product_Attribute__c, record=nara__Product_Attribute__c:{}]}
Map2 Returns:
system.debug('****map2*****'+lstDynamicWrapper2);
result:
******map2*****{Product_Attribute__c=DynaPageController.DynamicWrapper:[fields=(Color__c, Size__c), objectname=Product_Attribute__c, record=nara__Product_Attribute__c:{}]}
Save:-
public pageReference save() 
       { 
                       for(DynamicWrapper item:lstDynamicWrapper1.values())
                        {   
                            upsert item.record;
                        }
                        for(DynamicWrapper item:lstDynamicWrapper2.values())
                        {   
                            upsert item.record;
                        }
                        return null;
        }
When i wrote the above code in save(). It creates 2 records.
first record with map1 values and second record with map2 values.
But my requirement is, i need to create only one record with these 2 map values.
i.e i need to get these 2 map values at a time with in a single for loop.
(I used list<sobject> but it is also creating 2 records)
can you please suggest me.
Thanks,
RKrish

 

Hi,

 

Can You please tell me the step by step procedure to create & use the Java Plugin in Jitter bit?

 

Thanks,

Ramya

Hi,

 

How can i add salesforce EnterPrise Wsdl to the Jitter bit?

 

Thanks,

Ramya

Hi,

How can i use Jitter Bit to Query the Salesforce Records?

 

Regards,

Ramya

HI,

I have 3 custom objects.

Object1:- It contains fields as Name (Auto), FieldName__c (Text), ObjectName__c(Text).

Name     FieldName__c            ObjectName__c

1 Item__c(lookup) object2

2             Color__c(Text)              object2

3             Size__c(Text)                 object2

like this i entered records.

Object3: It Contains fields as Name(auto), Item__c(Text), Required__c(Text).

Name         Item__c           Required__c

1 AC Color

2 FAN SIZE

 

With "object1" i constructed a new VF page dynamically using Wrapper class Functionality.

Initially all the fields on DVF is not required. This page Contains Item__c (lookup), color__c, Size__c fields and save button.

Now select Item__c value (AC) from the lookup then save.

Per Item "AC" Color is required. Here Color value is null.

So, i need to make that color field as required field with Red (Just like standard salesforce functionality).

Like this i need to perform the validation on my Dynamic VF page.

 

 

Please suggest me.

 

 

 

 

Hi,

I have an object  "DynamicData__c" with fields Fieldname__c & ObjectName__c.

In Fieldname__c & ObjectName__c i am entering field api name and object api name. Like this i created records for DynamicData__c. 

Now, I need to construct a new VF page Dynamically.

In this process i should use wrapper class to return both objectname list and fieldname list to <apex:inputField> tag.

By the returned values i need to place the input fields of an object on VF page.

 i  will use <apex:inputField value="{objectlist.fieldlist}"/> in repeater.

 

If u have sample please send, its important for me.

Regards:

Ramya

 

 

 

Hi,

I have a DynamicVF page with all fields (Through repeater i placed all inputfields on VF page).

Name,Phone__c,City__c (picklistfield), pincode__c.

 

Initially "Name" is only required field. Remaining all are not required fields.

When i choose a 'city' value from the "picklist" i need to make pincode field as required field. (That field should be required with Red symbol )

 

Any help will great appreciation.

 

thanks,

Ramya

 

Hi, Can u help me to solve this.

I have one custom object with fields (Name,Item__c(Picklist), Email__c, City__c)
This Item__c picklist field has some values like (9001,9002,9003,9004)
Now i have 2 custom settings namely CS1 & CS2. 
CS1:-
----
in this custom setting i added all the custom object fields and based on this custom setting i Constructed a Dynamic VF page.
CS2:-
----
This contains some fields like, 
Name, ItemName__c,Required__c.
In Second Custom setting i created some records like this,
Name : Field1
ItemName__c : 9001
Required__c   : true
Name : Field2
ItemName__c: 9002
Required__c : false
----etc.
In dynamic vf page initially i need to display all the fields from the custom settings.
1) when i choose 9001 value from the picklist i need to make some fields as mandatory and i need to display only those mandatory fields on Vf page dynamically (based on Required__c value from the custom setting).
2) when i choose 9001 value i need to make some fields as mandatory and i need to display some other fields. (if Required__c is false then all the fields(except Name) are not mandatory) and i can enter values to these fields.
This functionality is similar to record types in Salesforce.
Based on product value i need to enable or disable fields on Dynamic Visual force page. (but here we should consider the Required__c boolean value)
Please suggest me.
Thanks in Advance.

 

Hi,

I have a custom object with 3 fields. Later i will add these 3 fields into custom setting (Constructring Dynamic VF page).
slno (standard), itemname__c (custom text), Required__c (checkbox).
In this , If the Required__c value is 'true' then i need to make itemname__c as a required field.
suppose, If the Required__c value is 'false' then i need to make itemname__c as an ordinary field (not required).
Based on this scenario i need to perform the validations and add the records into Custom object. 

 

Can you suggest me.

Regards:

Ramya

Hi,

How can i perform the DML Operations from flex?

i.e i need to insert, edit and delete the salesforce object records from the Flex window.

 

Regards:

Ramya

 

Hi,

 

I knew object id 'a03/0' like this.

By using this id, How can i know the object name like E__c.

 

Regards:

Ramya

 

Hi,

 

I have a visual force page which has edit & Delete functionality with links.

But my page has no standard controller.

How can i override custom Edit & Delete functionalities with Standard Edit & Delete buttons of salesforce.

Can u please suggest me.

Regards:

Ramya

Hi,

 

CastIron Vs Jitterbit Integration tools:

 

Can any one explain the differences between these two integration tools?

Hi

How can i retrieve or access or query the data from these objects?

 

1.ContentDocument

2. ContentWorkspace

 

 

 

Hi,

 

What is an outbound msg? where we use it exactly?

Could you please share an example to understand this.

 

Thanks,

ANKITA

Hi,

 

Can any one tell me the difference between Action Function and Action Support?

If you don't mind, plz send sample codes for these two functions except from the component reference.

 

Thanks,

Ramya

Hi,

 

How can i use retrieve() method to access the data from Metadata API?

 

Hi,

 

Anybody help me how to use the map function and the logic behind it using some sample code?

 

 

  • July 05, 2011
  • Like
  • 0

Hi,

 

I am working on Jitter bit Integration tool.

Using jitterbit, i performed create,upsert and update operations.

But i couldn't find any feature to delete the salesforce object records?

But i am sure we can perform delete also using jitter bit?

Please help me, How can i delete the salesforce object records from the jitter bit?

 

Thanks,

Ramya

Constructing a Dynamic VF page with Custom Object Fields based on Row Number and Col Number:

1. Created a custom object with the fields,
    FieldName__c, ObjectName__c,RowNumber__c,ColNumber__c.
  In FieldName__c and ObjectName__c, add the field api name and Object api name of another custom object.
To build the dynamic VF page, i used the following scenario.
Step1:
Here i prepared 2 maps to the following.
Map1: In Map1 i got all the field api names & object api names, whose contains the colNumber__c value '1'
Map2: In Map2 i got all the field api names & object api names, whose contains the colNumber__c value '2'
Step2:
I could display dynamically all the fields using these 2 maps, from the custom object on a VF page.
(Till the designing part completed)
Step3:
There is a problem while working with Save functionality.
(Previous, I build Dynamic VF page with only one Map. At that time i did not face this problem. All records are upserting very fine)
But in this scenario i used 2 maps, so i am getting a problem while upserting the records.
Map1 Returns:
system.debug('*****map1*****'+lstDynamicWrapper1);
result:
******map1****{Product_Attribute__c=DynaPageController.DynamicWrapper:[fields=(ProductName__c, Type__c), objectname=Product_Attribute__c, record=nara__Product_Attribute__c:{}]}
Map2 Returns:
system.debug('****map2*****'+lstDynamicWrapper2);
result:
******map2*****{Product_Attribute__c=DynaPageController.DynamicWrapper:[fields=(Color__c, Size__c), objectname=Product_Attribute__c, record=nara__Product_Attribute__c:{}]}
Save:-
public pageReference save() 
       { 
                       for(DynamicWrapper item:lstDynamicWrapper1.values())
                        {   
                            upsert item.record;
                        }
                        for(DynamicWrapper item:lstDynamicWrapper2.values())
                        {   
                            upsert item.record;
                        }
                        return null;
        }
When i wrote the above code in save(). It creates 2 records.
first record with map1 values and second record with map2 values.
But my requirement is, i need to create only one record with these 2 map values.
i.e i need to get these 2 map values at a time with in a single for loop.
(I used list<sobject> but it is also creating 2 records)
can you please suggest me.
Thanks,
RKrish

 

is there a way to map between the field name in the report meta data  to salesforce objects?

 

I'm using the Metadata Api to retrive metadata about a report

the result is something like this

 

<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://soap.sforce.com/2006/04/metadata">
    <columns>
        <field>SALUTATION</field>
    </columns>
    <columns>
        <field>FIRST_NAME</field>
    </columns>
    <columns>
        <field>LAST_NAME</field>
    </columns>
    <columns>
        <field>TITLE</field>
    </columns>
    <columns>
        <field>ADDRESS2_STREET</field>
    </columns>
    <columns>
        <field>ADDRESS2_CITY</field>
    </columns>
    <columns>
        <field>ADDRESS2_STATE</field>
    </columns>
    <columns>
        <field>ADDRESS2_ZIP</field>
    </columns>
    <columns>
        <field>ADDRESS2_COUNTRY</field>
    </columns>
    <columns>
        <field>PHONE1</field>
    </columns>
    <columns>
        <field>PHONE3</field>
    </columns>
    <columns>
        <field>PHONE2</field>
    </columns>
    <columns>
        <field>EMAIL</field>
    </columns>
    <columns>
        <field>OWNER_FULL_NAME</field>
    </columns>
    <columns>
        <field>ACCOUNT.NAME</field>
    </columns>
    <columns>
        <aggregateTypes>Sum</aggregateTypes>
        <field>SALES</field>
    </columns>
    <columns>
        <field>Account.Active__c</field>
    </columns>
    <filter>
        <criteriaItems>
            <column>SALES</column>
            <operator>greaterThan</operator>
            <value>40000000</value>
        </criteriaItems>
    </filter>
    <format>Tabular</format>
    <name>muly1</name>
    <reportType>ContactList</reportType>
    <scope>my</scope>
    <showDetails>true</showDetails>
    <timeFrameFilter>
        <dateColumn>CREATED_DATE</dateColumn>
        <interval>INTERVAL_CUSTOM</interval>
        <startDate>2008-08-05</startDate>
    </timeFrameFilter>
</Report>

 

what is ContactList?

what is ADDRESS2_STREET?

 

 

  • August 15, 2010
  • Like
  • 0

Hi There,

 

     I need objects fields ( field ID, created by and modified by) etc. I looked at the meta data API and did not see these elements . I was wondering if there is a way to get this data values.

 

Thanks

Hi Everyone,

 

I am trying to understand how Apex Batch works. Does Apex Batch do Job partioning? Below snippet is from the following link: http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content%2Fapex_batch_interface.htm|SkinName=webhelp

 

"Each execution of a batch Apex job is considered a discrete transaction. For example, a batch Apex job that contains 1,000 records and is executed without the optional scope parameter from Database.executeBatch is considered five transactions of 200 records each. The Apex governor limits are reset for each transaction. If the first transaction succeeds but the second fails, the database updates made in the first transaction are not rolled back."

 

Based on above snippet, does Apex Batch executes the five transactions at a same time, like parellel processing? Or does it just executes the chunk of 200 records at a time sequentially? I am assuming it runs all five parllely. Please shed some lights.

 

Also, the start method of Database.Batchable Interface returns QueryLocator, does it return all the data in one call? Just trying to understand what QueryLocator does.

 

Thanks so much in advance! I'll look forward to your postings :-)

 

Regards!

What I'm trying to accomplish is have certain fields from our opportunities and/or accounts use an API through a visualforce page to automatically populate fields within an external web store.

 

From the user behavior, they navigate to an opportunity, click a custom button, and the external web store launches, with a variety of fields pre-populated with values from Salesforce.

 

I'm also curious if we can do the reverse as well - essentially take some of the data once the order is complete, and perform an upsert or update on the linked record with certain fields from the external web store.

 

I'm completely new to this, so any tips or documentation would be great!

Hi All,

 

I would like to be able to call the SF Metadata API from Apex code in my custom app.

 

I went to Setup/App Setup/Develop/API and clicked on 'Download Metadata WSDL' and saved it to my hard drive.

 

Then I went to Setup/App Setup/Develop/ApexClasses and clicked on the 'Generate from WSDL' button. For Step 1, I navigate to the Metadata WSDL that I just saved and click 'Parse WSDL.' This takes me to the Step 2 screen where I then click on the 'Generate Apex code' button.

 

This takes me to the Step 3 screen which shows this error:

 

<error>

Apex generation failed.

Error message:
Error: Class name 'Metadata' already in use. Please edit WSDL to remove repeated names

 

</error>

 

Does this error mean that what I am attempting to do is not allowed? If it is allowed, how do I get around this error.

 

Any help would be appreciated.

 

Thanks,

Andrew

I have been able to create a custom field through the Metadata API, which is great. But now to be able to use it, I need to be able to add it to all appropriate Page Layouts and Make it available in the WSDL.

So first question, how can I add a custom field to a Page Layout with the API?  I tried creating a Layout object (inherits from Metadata) and using the Metadata API call create to create the new object which causes a "Field Integrity Exception" with a message of  "Parent entity failed to deploy" so I think that I'm close, but the message doesn't really mean much to me.

Second, once I create a new field, I want to be able to query for it.  Is there a way to dynamically update the WDSL to reflect the new field?

Will the winter release of the MetaData API allow you to access all of an organizations reports?

Or... Is it limited to the reports contained within installed packages.


Hi
 
  For Creating Custom Object programmatic using Metadata API I am receive the following Error Can any one help
 
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode:
 faultString: Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {http://soap.sforce.com/2006/04/metadata}metadata element
 faultActor:
 faultNode:
 faultDetail:
 {http://xml.apache.org/axis/}stackTrace:Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {http://soap.sforce.com/2006/04/metadata}metadata element
 
here is the code
 
Code:
MetadataBindingStub stub = (MetadataBindingStub) new MetadataServiceLocator().getMetadata();
stub.setTimeout(60000);

// Login using Partner WSDL 
// Getting the Session ID from Partner WSDL


SessionHeader sh = new SessionHeader();
sh.setSessionId(loginResult.getSessionId());

stub.setHeader(new MetadataServiceLocator().getServiceName()
  .getNamespaceURI(), "SessionHeader", sh);


CustomObject co = new CustomObject();
String name = "MyNewObj";
co.setFullName(name + "__c");
co.setDeploymentStatus(DeploymentStatus.Deployed);
co.setDescription("Created by the Metadata API");
co.setEnableActivities(true);
co.setLabel(name + " Object");
co.setPluralLabel(co.getLabel() + "s");
co.setSharingModel(SharingModel.ReadWrite);
CustomField nf = new CustomField();
nf.setType(FieldType.Text);
nf.setLabel(co.getFullName() + " Name");
co.setNameField(nf);
AsyncResult[] ars = stub.create(new Metadata[] { co} );

 
Note SessionHeader Class also Import from partner WSDL .
Metadata.wsdl not generating SessionHeader.java.
 
Thanks
Thanga
 
Is it possible to create a web service which will perform some action (ex: create a task, send a report via mail, generate an alert) but time based?
 
I mean what we need for instance is to generate an alert to some users when a customer reaches is birthday, or after one week of no activity? (thoses kind of alert)
 
If yes, in which languajes and waht are the best practices when building such web services?
 
Has always thanks for your support.
TRF
  • October 31, 2006
  • Like
  • 0