• anil.ax822
  • NEWBIE
  • 25 Points
  • Member since 2010

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

Hi,

In person account type,i need to change the field access levels to 'edit' using apex trigger,but for person account record type the contact sharing setting will be controlled by parent, when i tried to write trigger code on account, to chane the contact field access levels,i am getting error like below 

 

Error: Compile Error: Field is not writeable: ContactShare.ContactAccessLevel at line 91 column 18  


the code is 

 

ContactShare cs = new ContactShare();

 cs.ContactAccessLevel = 'Edit'; 

 cs.ContactId = contact.Id;   

 Database.SaveResult accountInsertResults = Database.insert(cs, false);

 

Please help me 

Hi,

i need to merge the two cases which are duplicated  request ,how it can be achieved.please help me

some one told me that use appexcahnge application,but can i achieve the same without appexchange application?

Hi,

How I can access the self-service portal in our production Environment  ?

Hi,

 

If the case is not picked up by anyone in more than   30 min ,i need to send email alert

 

How this can be achieved.

 

Please Help me

Hi,

 

according to client requirement ,they need to get daily remainders or assigned case notice to assignees for every 1 hour.

 

Will you provide some solution how can i achieve this ??

 

Regards,

 

Anil 

I have a picklist status field ,the field contains postponed,scheduled ,canceled values . when i select postponed value ,the custom date field should be made activate ,in other cases it should be inactive.

Hi,

 

Anybody worked on MS CRM to salesforce CRM ?

 

How to Migrate MS crm data to salesforce crm ?

 

What are the issues involeved?

 

PLease Help Me???

Hi,

I have an issue in generating Forecast Opportunity Matrix report
The below is the Matrix Report

Opp Owner     Opp Name                stage            1-3-2010  1-3-2010   1-3-2010   1-3-2010   1-3-2010   1-3-2010    Total
Anil                        abc                       initialinzing     10000     10000           10000         10000        10000           10000        60000

Sunil                      cdf                       initialinzing     10000     10000           10000         10000        10000           20000        70000

 

Please  help me to generate report

Hi,

 

I have a custom button in account called 'submit' and it's a onclick Java script event when i click on the button it displays error

 

 

A problem with the OnClick JavaScript for this button or link was encountered:
{faultcode:'soapenv:Client', faultstring:'No operation available for request {http://soap.sforce.com/schemas/package/OutboundEmails}SendEmailNotification, please check the WSDL for the service.', }

 

 

iam using 21.0 version

JS code:

{!REQUIRESCRIPT("/soap/ajax/

21.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/21.0/apex.js")}

var AccId= '{!Account.Id}';
sforce.apex.execute("OutboundEmails","SendEmailNotification", {id:AccId});
window.alert("Account Id is sent." )

Apex code:

global class OutboundEmails {
WebService static void SendEmailNotification(Id id) {

//create a mail object to send a single email.
Messaging.SingleEmailMessage mail = new
Messaging.SingleEmailMessage();
//set the email properties
mail.setToAddresses(new string[] {'Myself@gmail.com'});

mail.setSenderDisplayName('SF.com Email Agent');
mail.setSubject('A new reminder');
mail.setHtmlBody('an object with ID='+ id + ' is just clicked on.');
//send the email
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail } );

}
}



ERROR:sforce is not defined



Hi,

 

I developed aString  xml in my visualforce page  and i want to pass these String to apex class,iterate the vaues and i need to display ,

 

somebody suggested me actionfunction ,Is it the right one ,If please provide some code .

 

 

Regards,

Anil

Hi,

i have an custom object Position__c ,in this i have a field called
PositionName,
i want to show this textfield in Visualforce page as text box with
lookup field attached.

Please provide some code

Regards,

ANI


Hi,

 

I have PHP page which returns contacts.leads.my task is to show these contacts.leads in xml format.

 

Please provide me some code or links for this one

HIII,

 

 

plz tell me how to create many to many relationship between 2 standard objects

 

HIIII,

 

 

Object to track events and tasks associated to either a Lead or a Contact and one other object assigned to a User.

 

pllz help me how to track events

 

 

Thanks in advance

Can anyone give me idea on batch apex class and scheduled class ????

Hi;

i have 2 picklist say a,b

in a i have 1-10 values

in b if i have 4 then in formula field it should display Yes otherwise No

the same thing i achieved but it is hard coded

see like

 

IF(AND(ISPICKVAL(Pick1__c, "4"), ISPICKVAL(pick2__c, "4")),"yes", "no");

is it possible like dynamically passing values to formula fields

plz help

i have 1 drop down list , i have generated months according to billing entries

vat i want is when i click on the month in drop down list it has to Generate next 6 mnths including present mnth

anyone pllllz help me

txs in advancee..........

 

Hi,

i need to merge the two cases which are duplicated  request ,how it can be achieved.please help me

some one told me that use appexcahnge application,but can i achieve the same without appexchange application?

Hi,

 

I have a custom button in account called 'submit' and it's a onclick Java script event when i click on the button it displays error

 

 

A problem with the OnClick JavaScript for this button or link was encountered:
{faultcode:'soapenv:Client', faultstring:'No operation available for request {http://soap.sforce.com/schemas/package/OutboundEmails}SendEmailNotification, please check the WSDL for the service.', }

 

 

iam using 21.0 version

JS code:

{!REQUIRESCRIPT("/soap/ajax/

21.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/21.0/apex.js")}

var AccId= '{!Account.Id}';
sforce.apex.execute("OutboundEmails","SendEmailNotification", {id:AccId});
window.alert("Account Id is sent." )

Apex code:

global class OutboundEmails {
WebService static void SendEmailNotification(Id id) {

//create a mail object to send a single email.
Messaging.SingleEmailMessage mail = new
Messaging.SingleEmailMessage();
//set the email properties
mail.setToAddresses(new string[] {'Myself@gmail.com'});

mail.setSenderDisplayName('SF.com Email Agent');
mail.setSubject('A new reminder');
mail.setHtmlBody('an object with ID='+ id + ' is just clicked on.');
//send the email
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail } );

}
}



ERROR:sforce is not defined



Hi,

i have an custom object Position__c ,in this i have a field called
PositionName,
i want to show this textfield in Visualforce page as text box with
lookup field attached.

Please provide some code

Regards,

ANI


Please can anybody tell me that how to send data to object after clicking on button of the visualforce page...

Just guide me whether setter & getter property are required by the controller class & then it is transffered to the object by DML query....Not getting my self clearly so please guide me quickly..

Please reply me urgently & I am w8ting...

HIII,

 

 

plz tell me how to create many to many relationship between 2 standard objects

 

Hello Everyone,

 

 I want to create my application i.e. Time Table Software using salesforce.  am new to salesforce, and am not getting the idea to creat that application. anyone please help me out for the same??

 

Thanks In Advance

 

  • October 12, 2010
  • Like
  • 0

i have 1 drop down list , i have generated months according to billing entries

vat i want is when i click on the month in drop down list it has to Generate next 6 mnths including present mnth

anyone pllllz help me

txs in advancee..........

 

Hi. I'm looking to create some Apex code that changes the record type of an opportunity to 'Multi' when brands/products from more than one Product Family are added to a single opportunity.

 

So the workflow is this:

 

1. User clicks New button to create a new opportunity

2. User chooses a record type for that opty -- Media, Events, etc.

3. User fills in opportunity info and chooses various products/brands to attach to that opty. Each brand/product has a Product Family.

4. Apex code is triggered when brands/products are added to the opty that are from more than one Product Family (not necessarily just two or more products, which could all be from the same Product Family) -- this would trigger the record type for that opty to be a) changed to Multi and b) the record type set to read-only. (optional) If the products/brands for that opty are changed again, the record type would revert to the original record type.

 

I'm not an Apex developer and I'm not sure where to start here. I'm hoping someone can point me in the right direction. Thanks in advance.