-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
12Questions
-
8Replies
Visualforce Page/Site - Page Not Found Error
-
- pvande
- October 21, 2022
- Like
- 0
- Continue reading or reply
Embedded Chat - Can you connect only to the Case?
-
- pvande
- November 06, 2020
- Like
- 0
- Continue reading or reply
Live Agent Post Chat - Site visibility issues
The problem is that when clicking on the link in the page - they are directed to a site that is not
-
- pvande
- July 10, 2019
- Like
- 0
- Continue reading or reply
Live Agent Post Chat - Need help with simple VF page.
(customizining the chat button with Post-Chat Page or Post-Chat URL)
I just need to say" Please take this survey" and provide a link. The survey is hosted by Survey Monkey.
I would VERY MUCH appreciate anyone who could help me!!
-
- pvande
- April 18, 2019
- Like
- 0
- Continue reading or reply
Live Agent Data Flow Diagram
Thank you in advance for your help.
-
- pvande
- February 13, 2018
- Like
- 0
- Continue reading or reply
Help with Apex Class Coverage (please)
My trigger is as follows:
trigger WorkstreamStamp on Project__c (before insert) {
For(Project__c p : Trigger.New)
{
If(p.Workstream__c == null)
{
List<Account> incomingprojinfo = [Select Workstream__c FROM Account WHERE Id =:p.Sponsor_Account_Ultimate_Parent__c LIMIT 1];
{
p.Workstream__c = incomingprojinfo[0].Workstream__c;
}
}
}
}
-
- pvande
- January 18, 2018
- Like
- 0
- Continue reading or reply
Need help with IF clause on trigger
Here is the trigger:
Trigger MoveToProduction on Opportunity (before insert, before update){
List<ID> ProjIds = New List<ID>();
for(Opportunity o : Trigger.new){
if(o.Move_to_Production__c == true && o.RecordTypeId == '012a0000001FqTn'){
ProjIds.add(o.Project__c);
}
List<Project__c> ProjList = [SELECT id, Move_to_ProductionP__c, Date_Pushed_to_Production__c FROM Project__c WHERE id in :ProjIds];
for(integer i = 0 ; i < ProjList.size(); i++){
If(ProjList[i].Date_Pushed_to_Production__c == null)
ProjList[i].Move_to_ProductionP__c = true;
ProjList[i]. Date_Pushed_to_Production__c = system.today();
update ProjList;
-
- pvande
- August 16, 2017
- Like
- 0
- Continue reading or reply
System.FinalException: Record is read-only:
Here is my error: Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger UltimateForecast caused an unexpected exception, contact your administrator: UltimateForecast: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.UltimateForecast: line 12, column 1
I have highlighted the field that appears at line 12, column 1. It is a formula field. Is that the problem?
Here is my trigger:
Trigger UltimateForecast on Project__c ( after insert, after update) {
For(Project__c p : Trigger.New){
List<Account> incomingprojinfo = [Select Forecast_Account__c
FROM Account WHERE Id =:p.Sponsor_Account_Ultimate_Parent__c LIMIT 1];
p.Is_Sponsor_Account_Ultimate_Parent__c = incomingprojinfo[0].Forecast_Account__c;
}
}
-
- pvande
- July 18, 2017
- Like
- 0
- Continue reading or reply
Error: Compile Error: Variable does not exist
Error: Compile Error: Variable does not exist: Designated_Forecast_Account__c at line 5 column 1
My trigger:
trigger ForecastAccount on Opportunity (before insert, before update) {
if ( Project__r.Sponsor_Account__r.Forecast_Account__c = True) {
Designated_Forecast_Account__c = Sponsor_Account__r.Id ;
} else if
( Project__r.Sponsor_Account__r.Forecast_Account__c = False){
Designated_Forecast_Account__c = Sponsor_Account__r.Reporting_Parent__c ;
}
}
-
- pvande
- July 14, 2017
- Like
- 0
- Continue reading or reply
Custom Save Button - Synchronize Case with JIRA
https://jira-dev.int.helloworld.com/plugins/servlet/customware/connector/issue/7/Case/synchronize.action?id={!Case.Id}
-
- pvande
- February 13, 2017
- Like
- 0
- Continue reading or reply
Trigger Help - "Miss firing on boolean checkbox"
Goal: Update the boolean Move_to_ProductionP__c (on Project__c) if the following criteria are true: o.Move_to_Production__c = True and o.RecordTypeId == '012a0000001FqTn'
Problem: The trigger updates the boolean field Move_to_Production__c on the custom Project object (this is desired) but it also updates the boolean field on the Opportunity field Move_to_Production__c as True upon creation of an opportunity, which is not a desired outcome.
Here is my code. I would appreciate any help from the experts! Thanks in advance for looking.
trigger MoveToProduction on Opportunity (before insert, before update) {
List<ID> ProjIds = New List<ID>();
for(Opportunity o : Trigger.new){
if(o.Move_to_Production__c = true && o.RecordTypeId == '012a0000001FqTn')
{ ProjIds.add(o.Project__c);
}
}
List<Project__c> ProjList = [SELECT id, Move_to_ProductionP__c FROM Project__c WHERE id in :ProjIds]; for(integer i = 0 ; i < ProjList.size(); i++){
ProjList[i].Move_to_ProductionP__c = true;
}
update ProjList;
}
-
- pvande
- June 23, 2016
- Like
- 0
- Continue reading or reply
APEX CLASS - Failure Stack Trace
I AM RECEIVING THIS ERROR MESSAGE:
Failure Message: "System.DmlException: Insert failed. First exception on row 0; first error: INACTIVE_OWNER_OR_USER, operation performed with inactive user: []", Failure Stack Trace: "Class.TestEventDivisionUpdate.testEventDivisionUpdate: line 13, column 1"
WHEN I DEPLOY AN UPDATE TO AN EXISTING TRIGGER USING THIS CLASS:
CAN SOMEONE PLEASE HELP ME UNDERSTAND WHY I WOULD GET A "FAILURE STACK TRACE"? THANK YOU!
@isTest
private class TestEventDivisionUpdate {
//This test will also test the Account and Contact Trigger
static testMethod void testEventDivisionUpdate() {
// Create a User, an Account and a Contact for testing purposes
User u = [SELECT Id, Division, Department from User
WHERE Division <> null AND Department <> null LIMIT 1];
Account a = new Account(Name = 'Test Account', OwnerId=u.Id);
insert a;
Contact c = new Contact(LastName='Test', AccountId=a.Id, OwnerId=u.Id);
insert c;
datetime StartDate = datetime.newInstance (2011, 5, 27);
datetime EndDate = StartDate.addDays(2);
Event e = new Event(Subject = 'TestSubject', OwnerId=u.Id, WhoId = c.Id, StartDateTime = StartDate, EndDateTime=EndDate);
insert e;
Event updatedE = [SELECT Id, Department__c
FROM Event WHERE Id = :e.Id LIMIT 1];
Account UpdatedA = [SELECT Id, Department__c
FROM Account WHERE Id = :a.Id LIMIT 1];
Contact UpdatedC = [SELECT Id, ePrize_Department__c
FROM Contact WHERE Id = :c.Id LIMIT 1];
// Now do the assertions
// System.assertEquals(updatedE.Department__c, u.Department);
// System.assertEquals(updatedA.Department__c, u.Department);
// System.assertEquals(updatedC.ePrize_Department__c, u.Department);
-
- pvande
- November 05, 2012
- Like
- 0
- Continue reading or reply
Creating Visualforce Page with custom picklist
I have a requirement ..i need to create a visualforce page which will display all account names in custom picklist.
Please help me on this.
Thanks in Advance.
Smitha
- smitha george 5
- February 14, 2018
- Like
- 0
- Continue reading or reply
Help with Apex Class Coverage (please)
My trigger is as follows:
trigger WorkstreamStamp on Project__c (before insert) {
For(Project__c p : Trigger.New)
{
If(p.Workstream__c == null)
{
List<Account> incomingprojinfo = [Select Workstream__c FROM Account WHERE Id =:p.Sponsor_Account_Ultimate_Parent__c LIMIT 1];
{
p.Workstream__c = incomingprojinfo[0].Workstream__c;
}
}
}
}
- pvande
- January 18, 2018
- Like
- 0
- Continue reading or reply
Need help with IF clause on trigger
Here is the trigger:
Trigger MoveToProduction on Opportunity (before insert, before update){
List<ID> ProjIds = New List<ID>();
for(Opportunity o : Trigger.new){
if(o.Move_to_Production__c == true && o.RecordTypeId == '012a0000001FqTn'){
ProjIds.add(o.Project__c);
}
List<Project__c> ProjList = [SELECT id, Move_to_ProductionP__c, Date_Pushed_to_Production__c FROM Project__c WHERE id in :ProjIds];
for(integer i = 0 ; i < ProjList.size(); i++){
If(ProjList[i].Date_Pushed_to_Production__c == null)
ProjList[i].Move_to_ProductionP__c = true;
ProjList[i]. Date_Pushed_to_Production__c = system.today();
update ProjList;
- pvande
- August 16, 2017
- Like
- 0
- Continue reading or reply
Error: Compile Error: Variable does not exist
Error: Compile Error: Variable does not exist: Designated_Forecast_Account__c at line 5 column 1
My trigger:
trigger ForecastAccount on Opportunity (before insert, before update) {
if ( Project__r.Sponsor_Account__r.Forecast_Account__c = True) {
Designated_Forecast_Account__c = Sponsor_Account__r.Id ;
} else if
( Project__r.Sponsor_Account__r.Forecast_Account__c = False){
Designated_Forecast_Account__c = Sponsor_Account__r.Reporting_Parent__c ;
}
}
- pvande
- July 14, 2017
- Like
- 0
- Continue reading or reply
Custom Save Button - Synchronize Case with JIRA
https://jira-dev.int.helloworld.com/plugins/servlet/customware/connector/issue/7/Case/synchronize.action?id={!Case.Id}
- pvande
- February 13, 2017
- Like
- 0
- Continue reading or reply
Trigger Help - "Miss firing on boolean checkbox"
Goal: Update the boolean Move_to_ProductionP__c (on Project__c) if the following criteria are true: o.Move_to_Production__c = True and o.RecordTypeId == '012a0000001FqTn'
Problem: The trigger updates the boolean field Move_to_Production__c on the custom Project object (this is desired) but it also updates the boolean field on the Opportunity field Move_to_Production__c as True upon creation of an opportunity, which is not a desired outcome.
Here is my code. I would appreciate any help from the experts! Thanks in advance for looking.
trigger MoveToProduction on Opportunity (before insert, before update) {
List<ID> ProjIds = New List<ID>();
for(Opportunity o : Trigger.new){
if(o.Move_to_Production__c = true && o.RecordTypeId == '012a0000001FqTn')
{ ProjIds.add(o.Project__c);
}
}
List<Project__c> ProjList = [SELECT id, Move_to_ProductionP__c FROM Project__c WHERE id in :ProjIds]; for(integer i = 0 ; i < ProjList.size(); i++){
ProjList[i].Move_to_ProductionP__c = true;
}
update ProjList;
}
- pvande
- June 23, 2016
- Like
- 0
- Continue reading or reply
APEX CLASS - Failure Stack Trace
I AM RECEIVING THIS ERROR MESSAGE:
Failure Message: "System.DmlException: Insert failed. First exception on row 0; first error: INACTIVE_OWNER_OR_USER, operation performed with inactive user: []", Failure Stack Trace: "Class.TestEventDivisionUpdate.testEventDivisionUpdate: line 13, column 1"
WHEN I DEPLOY AN UPDATE TO AN EXISTING TRIGGER USING THIS CLASS:
CAN SOMEONE PLEASE HELP ME UNDERSTAND WHY I WOULD GET A "FAILURE STACK TRACE"? THANK YOU!
@isTest
private class TestEventDivisionUpdate {
//This test will also test the Account and Contact Trigger
static testMethod void testEventDivisionUpdate() {
// Create a User, an Account and a Contact for testing purposes
User u = [SELECT Id, Division, Department from User
WHERE Division <> null AND Department <> null LIMIT 1];
Account a = new Account(Name = 'Test Account', OwnerId=u.Id);
insert a;
Contact c = new Contact(LastName='Test', AccountId=a.Id, OwnerId=u.Id);
insert c;
datetime StartDate = datetime.newInstance (2011, 5, 27);
datetime EndDate = StartDate.addDays(2);
Event e = new Event(Subject = 'TestSubject', OwnerId=u.Id, WhoId = c.Id, StartDateTime = StartDate, EndDateTime=EndDate);
insert e;
Event updatedE = [SELECT Id, Department__c
FROM Event WHERE Id = :e.Id LIMIT 1];
Account UpdatedA = [SELECT Id, Department__c
FROM Account WHERE Id = :a.Id LIMIT 1];
Contact UpdatedC = [SELECT Id, ePrize_Department__c
FROM Contact WHERE Id = :c.Id LIMIT 1];
// Now do the assertions
// System.assertEquals(updatedE.Department__c, u.Department);
// System.assertEquals(updatedA.Department__c, u.Department);
// System.assertEquals(updatedC.ePrize_Department__c, u.Department);
- pvande
- November 05, 2012
- Like
- 0
- Continue reading or reply