• Jayesh Shewale12345
  • NEWBIE
  • 5 Points
  • Member since 2019

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

String userId = UserInfo.getUserId();
User u;
u=[SELECT Id, User_Pos__c FROM User WHERE Id =:userId limit 1];
 String userPos = u.User_Pos__c;

I want custom field value in my string please suggest.
Hi Everyone,
I am doing integration in which I am hitting web service which is giving me some data and I want to store that data into my salesforce objects please suggest me how to do it:

following is the link:
http://intelora.co.in/assessment/eshopdemo.php?keyword=shirt

Please suggest me how to deserialize the response of this service.

 
Hi everyone,

I am learning salesforce SOAP integration.
I am integrating two salesforce organisations.
I have written one apex class in my source organisation and created one wsdl file.
Now I am in target organization & when I try to create apex class from WSDL file I am facing the error as follows:
Uploaded wsdl size exceeded the maximum upload limit: {0}

Please suggest me solution.
Hi,
I want  to create one lightning component which will show the image stored in object record.
Actual scenario is as follows:
there is one object called car(Car__c)
And car object has one field 'Picture__c'(data type- url)
I just want to show  the image stored in the record of car object.

I tried as follows:


<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    
    <aura:attribute name = "car" 
                    type = "object" 
                    default = "{
                               'sObjectType' : 'Car__c',
                               'Name' : 'Jayesh',
                               'Picture__c' : '/resources/cars/luxury.image/png'                             
                               }"/>
    <lightning:button variant = "neutral" class = "title"/>
    <div style="{!'position: relative; height: 30vh; background:' + v.backgroundColor + ' url(' + $Resource.carTile+') no-repeat;background-position: center;background-size: cover;'}">
    </div>
</aura:component>

Please help.

I am attempting to pull the state__c value from the site__c object where the site__c.id matches the selected value from a selectList.  I have tried 2 different ways and am unable to avoid errors. 

 

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

Attempt #1

    public String siteState
    {
        get {return [SELECT state__c FROM site__c WHERE id = :site LIMIT 1]; }
        set;
    }

 

The error I receive is:

Error: Compile Error: Return value must be of type: String at line 17 column 14

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

Attempt #2

    public String siteState
    {
        get
        {
            String tmpState = [SELECT state__c FROM site__c WHERE id = :site LIMIT 1];
            return tmpState;
        }
        set;
    }

 

The error I receive is:

Error: Compile Error: Illegal assignment from LIST:SOBJECT:Site__c to String at line 19 column 13

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

 

Any help is greatly appreciated.