You need to sign in to do that
Don't have an account?
sathya82
Date Insertion Problem
HI,
I am working with custom webservice in soap, when i comparing the fields in opportinity, i get strucked
May i know how can i insert Closedate, value by using webservice program.
Hi,
Please see below code snippet, this should help you;-
Let me know if you have any question about above.
Happy to help you!
All Answers
Hi,
It should be shomething like below:-
However, if you are getting date in request parameter, most probably it will come as string and you will need to convert that into Date type.
Let me know if you have any question about above.
Happy to help you!
Hi,
How can i prevent duplicates in contact object. That if i insert contact first name,contact lastname,email based upon that how can i prevent duplicates.
Hi,
Please see below code snippet, this should help you;-
Let me know if you have any question about above.
Happy to help you!
HI,
When i use your date code means if i enter tommrow close date means it taking present date.
As per my req which date is i came from external system i want to insert simply to sfdc.
Do you have any sample webservice code i am working first time with this integration, if it please share the sample code.
Hi,
If you looked at my code snippet above, in comment I have clearly mentioned that you need to modify according to your requirement. Please share code snippet what you are getting from request to be inserted as closedate. In nut shell, you will need to convert that into sfdc Date data type.
HI,
when i use below code at that time if i give tommrow's close date means but it not taking that date. it taking present date
that's means today date.
Hi,
This is coming because of below error code:-
Could you please try below code:-
Just to be clear, above code now will always set close date to yesterday's date. If you want to make it dynamic, I expect you are getting close date in request, please use that.
Let me know if you have any question about this.
Happy to help you!
HI,
suppose if i give closedate next month means it takes today-1 date
as per my req the date which was enter by thirdy party that same date should be populate in closedate field.
once check it.