• Abhishek Solanki
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Please code it asap. I need it urgent.


Create a object Note with Following fields
-Name (auto Number)
-Opportunity (Lookup to Opportunity)
-Account (Lookup to Account)
-Case (Lookup to Case)
-Description - Text Area
-Date - Date Field
-Record Owner -Lookup(User)

Now, you need to develop following functionalities.
1. Create a VF page MyRelatedNotes which takes userid as parameter.if no userid parameter is passed then it should take current logged in user id. Another Parameter "type" which will have value as Opportunity/Accounts/Cases .

2. Create picklist Type with 3 Values : Opportunity ,Accounts , Cases .By Default selected value should be type value passed in parameter and user can change this value.

3. If Opportunity is Selected from Drop down display all the Opportunity ,If Accounts are selected display accounts and same for cases  where Owner Id is Id passed from the parameter.

4. Create a section in visual force which is displayed when Opportunity/Case/Account is Selected and you will get a blank form to add notes records in which Owner will be populated by default and will be non editable.

5. Add save,reset button to section created above and write their functionality to save(insert the record with Selected Opportunity/Case/Account Populated),Reset(Clears out Description,Date and Owner field and change owner to editable field)

6.Description and Date should be made required and should show error if this is not filled (Do not use Required=True).

 

Please design solution as per following business scenario :
Consider Account standard object as an Exam and Contact  standard object as a Student.
You need to create following fields for Exam.
Passing Marks : Number
Topper : Lookup(Contact)
You need to create following field for Student.
Marks : Number

Now, you need to develop following functionalities.
1 . On exam record, you need to show Topper for related Student records. It means, you need to identify the student who has highest marks.
Please code it asap. I need it urgent.


Create a object Note with Following fields
-Name (auto Number)
-Opportunity (Lookup to Opportunity)
-Account (Lookup to Account)
-Case (Lookup to Case)
-Description - Text Area
-Date - Date Field
-Record Owner -Lookup(User)

Now, you need to develop following functionalities.
1. Create a VF page MyRelatedNotes which takes userid as parameter.if no userid parameter is passed then it should take current logged in user id. Another Parameter "type" which will have value as Opportunity/Accounts/Cases .

2. Create picklist Type with 3 Values : Opportunity ,Accounts , Cases .By Default selected value should be type value passed in parameter and user can change this value.

3. If Opportunity is Selected from Drop down display all the Opportunity ,If Accounts are selected display accounts and same for cases  where Owner Id is Id passed from the parameter.

4. Create a section in visual force which is displayed when Opportunity/Case/Account is Selected and you will get a blank form to add notes records in which Owner will be populated by default and will be non editable.

5. Add save,reset button to section created above and write their functionality to save(insert the record with Selected Opportunity/Case/Account Populated),Reset(Clears out Description,Date and Owner field and change owner to editable field)

6.Description and Date should be made required and should show error if this is not filled (Do not use Required=True).

 
Hello ,

When trying to connect from my visual code to my salesforce sanbox I'm receiving below error. 
Can you please help?

thank you
User-added imageUser-added image

Please design solution as per following business scenario :
Consider Account standard object as an Exam and Contact  standard object as a Student.
You need to create following fields for Exam.
Passing Marks : Number
Topper : Lookup(Contact)
You need to create following field for Student.
Marks : Number

Now, you need to develop following functionalities.
1 . On exam record, you need to show Topper for related Student records. It means, you need to identify the student who has highest marks.

Hi everybody,
I'm having some troubles with OAuth 1.0
Here i got some data.
requst token url - 'https://api.demo.com/requestToken'
consumer key like - 'demoHelloWorld'
consumer secret like - 'demoHelloWorldSecret'
signature method is - 'HMAC-SHA1'
some nonce like - 'GpNODMzhMP0'
and timestamp like - '1330114249'
all i'm doing is sending POST request to request token URL with header called 'Authorization' and

OAuth oauth_nonce="GpNODMzhMP0", oauth_signature_method="HMAC-SHA1", oauth_signature="r6LRsHFDqNu05oLaxSGn/dXZpIo=", oauth_timestamp="1330114249", oauth_consumer_key="demoHelloWorld", oauth_version="1.0"

 

 in it.

Status code of response is 401 - Unauthorized .
From OAuth docs i found that this means one or more of this points: "Invalid Consumer Key Invalid / expired Token Invalid signature Invalid / used nonce"

I suppose that the issue is in generating correct signature.
Can somebody describe how should i do this?

Here how i do this :

Blob hash = Crypto.generateMac('hmacSHA1',Blob.valueOf(myData),Blob.valueOf(consumer_key));
String signature= EncodingUtil.urlEncode(EncodingUtil.base64Encode(hash), 'UTF-8');

 

'myData' is string generated from Request type, URL and params for this example it will look like

'POST&https%3A%2F%2Fapi.demo.com%2FrequestToken&oauth_consumer_key%3DdemoHelloWorld%26oauth_nonce%3DGpNODMzhMP0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1330114249%26oauth_version%3D1.0'

 



If more information is needed please ask.

I will appreciate any help.

Thanks