I am building a Flow that takes a user through a wizard to create a custom contract object with detail objects that represent the products on that contract (stored as a junction object).  An issue I ran into is that Flow has a known limitation where if you use a Dynamic Choice (i.e. creating a dynamic set of checkboxes to choose Products from based on records from the Product object) it can only store the choices as a long semicolon delimited string in a variable; it cannot create detail objects based on your dynamic selection (even using a loop).

To get around this, I want the flow to just create the parent Contract, then I want an after insert Apex trigger to parse the field where the long string of semicolon separated Product Ids are stored.  The trigger would need to take the string and find each Id to store in a List.  Once I had the List made from the text field I could insert the Product detail records to the parent Contract.

I am very new to Apex, mostly just a point and click admin here.  I am struggling with how to use RIGHT and LEFT to loop through the string field.

trigger AddProductstoSOW on PS_Contract__c (after insert) {
        for(PS_Contract__c c:Trigger.new){
        List&lt;Id&gt; ProductsToInsert = new List&lt;Id&gt;;
        integer n = LEN(c.Initial_Services_Products__c);
      for(p=15,p&lt;n,p+17){
    //How to iterate through Initial_Products_Selected__c?
        thisId = LEFT(p);
        Id product = Id.valueOf(thisId);
        ProductsToInsert.add(product);
        }
    }
    insert ProductsToInsert;
}


Any help is very appreciated.


Question: Can symmetry be restored in high energy scattering?
Answer: First of all, the vev of $\phi$ scales like a positive power of $\mu$ which has the units of mass. So all the effects of the symmetry breaking scale like a positive power of the mass scale $\mu$. At energies $E$ satisfying $E\gg \mu$, i.e. much higher than $\mu$, the value of $\mu$ itself as well as vev and other things may simply be neglected relatively to $E$: all the corrections from the symmetry breaking go to zero, relatively speaking.

In the UV, i.e. at short distances, the dimensionless couplings (and interactions) such as $\lambda$ are much more important than the positive-mass-dimension dimensionful couplings such as $\mu$.

It's still true that the high-energy theory wasn't exactly symmetric in the treatment above; it was just approximately symmetric. However, in fact, sometimes it is exactly symmetric under the sign flip of $\phi$. That's because the value of $\mu$ runs, as in the renormalization group, and in many interesting theories, $\mu$ actually switches the sign at energies exceeding some critical energy scale $E_0$. So the high energy theory may have a single symmetry-preserving minimum of the potential and the symmetry breaking may be a result of the flow to low energies.

It's legitimate you want to know the higher-loop corrections to the Higgs potential but the subtlety you should appreciate is that all these calculations proceed relatively to some renormalization (mass) scale. If the scale is low, the behavior of the theory at much higher energies may only be deduced by the (inverted) RG flows. However, the deduction of the short-distance theory from its long-distance effective field theory approximation is never exact; it's the high-energy theory that is the legitimate starting point and the low-energy physics is its consequence.