You need to sign in to do that
Don't have an account?
Tal Tsror
Error: Compile Error: Invalid type - what am i missing
I saw TONS of errors like this in the web, most of them are related to double underscore (__).
I double and triple checked and i have no idea what am i missing, will appreicate if someone can assist.
Obviously, the API name of these fields are similiar - Can someone please point me what am I missing?
Edit | Del Internal SummaryInternal_Summary__c Long Text Area(32768) Tal Tsror, 10/6/2016 12:03 PM
Edit | Del Internal Summary HistoryInternal_Summary_History__c Long Text Area(32768) Tal Tsror, 10/10/2016 3:41 PM
I double and triple checked and i have no idea what am i missing, will appreicate if someone can assist.
Obviously, the API name of these fields are similiar - Can someone please point me what am I missing?
Edit | Del Internal SummaryInternal_Summary__c Long Text Area(32768) Tal Tsror, 10/6/2016 12:03 PM
Edit | Del Internal Summary HistoryInternal_Summary_History__c Long Text Area(32768) Tal Tsror, 10/10/2016 3:41 PM
Let me know if this helps!
Thanks,
Apoorv
All Answers
You need to use field name with object reference. Please try the below code:
Please mark this question as solved if this helps you so that others can view it as a proper solution.
Thanks,
Apoorv
what do you want to do here?
I want to concat the Internal summary to the history field (including timestamp of the update), so we'll be able to see all updates on ticket.
Just to mention the object is custom one from Zendesk tickets, not sure if it is important to mention :)
As you are accepting array of Internal_Summary__c as arguements to the method, please modify the code as follows:
Please mark this question as solved if this helps you so that others can view it as a proper solution.
Thanks,
Apoorv
If I understand correctly Internal_Summary__c is a filed not an Object, hence the error so obivous. In method definition at Line 2, Refer the name of the Object in which this (Internal_Summary__c) filed being defined not the feild name unless your Object API is also same as filed name.
Check Object permissions.
It should either be a primitive data type, or SObject Type.
Hope this helps.
Let me know if this helps!
Thanks,
Apoorv
Internal_Summary__c and Internal_Summary_History__c
I want to copy the data from internal_summary to the history, and add timestamp - This should be with trigger everytime the internal summary is modified.
can you guide me how?
How can i trigger it to be on modification?
Let me know if this works!
Thanks,
Apoorv
Thank you for your help!!!!
Now test and verify the functionality.
Or Why even bother about writing code, you can do it through workflow rules as well.
For Apex Trigger . Go to -> Developer Console , Click File -> New -> Apex Trigger.
Please mark this question as solved if this helps you so that others can view it as a proper solution.
Thanks,
Apoorv
I can see it now, so i'll test tomorrow and keep you posted!
Thats great to know. Its normal be confused when trying things for first time. I wish you good luck.
its a good a practice to encourage the community, acknowledge the best answer when you find the solution for the question.
Regards
Sri
Is there any chance to move Apex class and trigger to production under my responsibility? I'm willing to take the risk as i'm SFDC + Zendesk Admin.
Yes, you can create an 'Outbound Change Set' in your Sandbox, and add all the components you wish to deploy to production and then deploy them. Then log in to Production org and you can find the change set under 'Inbound Change Set', click on the change set you wish to deploy and click 'Deploy'.
For more info on how to move components from Sanbox to Production, refer to this link : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_deploy.htm
Hope this helps !
going forward with this - i have two more questions:
1. If i upload config set to production - will i have a way to delete it? or it is a one-way ticket?
2. I'm getting the following error, though i'm admin - what am i missing?
So, good news, i was able to create and upload the trigger to the production! It was hell of a job as I needed to create new sandbox of partial data, to have the Zendesk Tickets (custom object) raw data included in the migration.
Now, i'm trying to validate it before, but getting the following error - what should i do to solve this?
BTW, i deleted the class i wrote as I just realized i'm not even using it. So the trigger works on the data in sandbox.