• cinfidel
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies

Our company has an Enterprise Edition instance, which will be expired in a next few days and a new Professional Edition instance that is currently on Free trial. I asked them about enabling API access for this instance.

 

I'm looking to migrate all the customization / Apex Code / VF as well as database entries. I can do the metadata migration by saving it as a project on Eclipse it deploy it onto the new instance.

 

My question is, will I be able to migrate all the database entries as well? I'm thinking about writing some kind of migration script with the wsdl files, which I havn't done before.

 

Will it work? Anyone has any experience doing something like this?

I want to know if it is possible to set-up some kind of security layer so that records with a certain record type are only shown to a specific user. I wasn't able to do this in the Customize section in set-up. 

 

Can anyone help? Is this even possible?

 

In case it isn't possible, I want to create a custom object where records with sensitive information are dumped as I know objects can be semi-hidden using field level security. Any thoughts on this?

 

Thank you! 

I'm trying to display a string stored as a public variable in the controller apex class onto the visualforce page.

 

Is this even possible? Here's my test code so far (it doesn't display anything...) Thanks in advance!

 

VF:

<apex:page controller="VFController">

 

  <apex:form >

      <apex:commandButton value="numCases" onclick="execute_numCases()"/>

      <apex:actionFunction action="{!numCases}" name="execute_numCases" rerender="showstate" >

   </apex:actionFunction> 

  </apex:form>

  

  <apex:outputtext style="border:1px;background-color:#F3F3EC;" value="{!log}"/>

  

  

</apex:page>

 

Controller:

 

    public String log {get; set;}

   

 

    //a test method that returns a string saying how many cases are in the system

    public string numCases(){

     Integer count= 0;

     log ='something is wrong';

     Boolean done = false;

     Case mark = [select id, CaseNumber from case order by CaseNumber limit 1];

     if (mark != null) {count++;}

     else {log = 'There are currently 0 cases in our database.'; return log;}

     while (!done){

     Case[] cases = [select id, CaseNumber from case where CaseNumber > :mark.CaseNumber order by CaseNumber limit 499 ];

     count += cases.size();

     if (cases.size() == 0) {done = true; break;}

     mark = cases[cases.size()-1];

     }

     log = 'There are currently ' +count + ' cases in our database.';

     return log;

    } 

Hi all,

 

I'm a newbie in SF development area. I have a quick question about the triggers.

 

I read that update() in APEX is like UPDATE in SQL, so an "after update trigger"should fire whenever there is any change to any entry in sObject. Is this right?

 

The reason I'm asking this is that I have written a trigger that updates a field in a case when Account's PersonBouncedEmailDate is updated. So when we get a bounce email, it will update the PersonBouncedEmailDate for the row in Account, and that should fire this trigger I wrote which will update a custom field. (You can kind of guess where my company's using this trigger).

 

This trigger is however isn't firing at all. It fires when I manually update one of the fields (phone for example), but it doesn't fire when we get bounced email.

 

Any help will be appreciated.

 

 

Our company has an Enterprise Edition instance, which will be expired in a next few days and a new Professional Edition instance that is currently on Free trial. I asked them about enabling API access for this instance.

 

I'm looking to migrate all the customization / Apex Code / VF as well as database entries. I can do the metadata migration by saving it as a project on Eclipse it deploy it onto the new instance.

 

My question is, will I be able to migrate all the database entries as well? I'm thinking about writing some kind of migration script with the wsdl files, which I havn't done before.

 

Will it work? Anyone has any experience doing something like this?

I'm trying to display a string stored as a public variable in the controller apex class onto the visualforce page.

 

Is this even possible? Here's my test code so far (it doesn't display anything...) Thanks in advance!

 

VF:

<apex:page controller="VFController">

 

  <apex:form >

      <apex:commandButton value="numCases" onclick="execute_numCases()"/>

      <apex:actionFunction action="{!numCases}" name="execute_numCases" rerender="showstate" >

   </apex:actionFunction> 

  </apex:form>

  

  <apex:outputtext style="border:1px;background-color:#F3F3EC;" value="{!log}"/>

  

  

</apex:page>

 

Controller:

 

    public String log {get; set;}

   

 

    //a test method that returns a string saying how many cases are in the system

    public string numCases(){

     Integer count= 0;

     log ='something is wrong';

     Boolean done = false;

     Case mark = [select id, CaseNumber from case order by CaseNumber limit 1];

     if (mark != null) {count++;}

     else {log = 'There are currently 0 cases in our database.'; return log;}

     while (!done){

     Case[] cases = [select id, CaseNumber from case where CaseNumber > :mark.CaseNumber order by CaseNumber limit 499 ];

     count += cases.size();

     if (cases.size() == 0) {done = true; break;}

     mark = cases[cases.size()-1];

     }

     log = 'There are currently ' +count + ' cases in our database.';

     return log;

    } 

I have a custom field (EmailCount) on the Activity tab that gives me a count of certain types of activities.  What I would like is for this field to be populated onto the Lead tab into another custom field (EmailCountLead).

 

I would have liked have done this through work rules, but I don't see the needed fields.

 

Thanks