• Frederik Boot
  • NEWBIE
  • 30 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hello,

I would like to schedule a VisualFlow to run every single night at 3AM. Are there any best practices to achieve this?

Thanks!
Hello,

In our SF environment, I would like to create a roll-up summary field with a condition on a date field. However, it seems like relative date filters are not allowed. See screenshot below. It there another way to achieve this.

Screenshot
 
Hello,

I have the following XML:
 
<OrderDetails>
<OrderDetailID>2584</OrderDetailID>
<ProductCode>AS-456</ProductCode>
<GiftWrap>
<GiftWrapCost>0.0000</GiftWrapCost>
<GiftWrapType>Paper</GiftWrapType>
</GiftWrap>
</OrderDetails>
I am able to retrieve the information from the root element and first level elements. Using the following code:
 
Dom.Document doc = new Dom.Document();
doc.load(xml);

//Retrieve the root element for this document.
Dom.XMLNode root = doc.getRootElement();
    
String description = root.getName();
String name = root.getChildElement('ProductCode', null).getText();

However, I am not able to retrieve information from the second level (children of the GiftWrap element). I tried using:
 
String name = root.getChildElement('GiftWrap', null).getChildElement('GiftWrapCost', null).getText();

Unfortunately, this does not work. Can someone explain how to achieve this?

 
Hello,

In our SF environment, I would like to create a roll-up summary field with a condition on a date field. However, it seems like relative date filters are not allowed. See screenshot below. It there another way to achieve this.

Screenshot
 
Hello,

I have the following XML:
 
<OrderDetails>
<OrderDetailID>2584</OrderDetailID>
<ProductCode>AS-456</ProductCode>
<GiftWrap>
<GiftWrapCost>0.0000</GiftWrapCost>
<GiftWrapType>Paper</GiftWrapType>
</GiftWrap>
</OrderDetails>
I am able to retrieve the information from the root element and first level elements. Using the following code:
 
Dom.Document doc = new Dom.Document();
doc.load(xml);

//Retrieve the root element for this document.
Dom.XMLNode root = doc.getRootElement();
    
String description = root.getName();
String name = root.getChildElement('ProductCode', null).getText();

However, I am not able to retrieve information from the second level (children of the GiftWrap element). I tried using:
 
String name = root.getChildElement('GiftWrap', null).getChildElement('GiftWrapCost', null).getText();

Unfortunately, this does not work. Can someone explain how to achieve this?