Dictionaryの文字列抽出方法(C#)

添付資料のsheet「一覧」があり、請求管理NOを1行ずつ、
sheet「請求書」の請求管理NOに書き込み、請求書をPDF化し、同じメールアドレスごとメールを作成したいです。
「当月請求有無」が「有」で、同じメールアドレスの場合は、メールは1通で、各社のPDF化したすべての請求書を添付したいです。
添付する請求書はファイルを圧縮後、パスワードを付けます。
その際のメールの本文には会社名をいれたいです。
Book1.xlsx (12.8 KB)

以前、下記でご教授いただきまして、 Dictionaryの式ができました。

現在のdictの式
Dt一覧.AsEnumerable().Where(r=>r[“当月請求有無”].ToString()==“有” && r[“請求書送付方法”].ToString().Contains(“メール”) ||ToString().Contains(“郵送&メール”)).GroupBy(r=>(r[“メールアドレス(1)”].ToString()+“;”+r[“メールアドレス(2)”].ToString()).Trim(‘;’)).ToDictionary(g=>g.Key,g=>g.Select(r=> r[“請求管理No”].ToString()).ToArray())

ファイルを圧縮後のzipの名前は、同じメールアドレスの場合の、sheet「一覧」の一番上の請求管理Noにしたいです。
ファイル圧縮のZIPの名前の設定方法を教えてくださいませんか。

また、メールの本文に会社名を入れる方法がわかりません。

C#が勉強不足で申し訳ありません。

Hello @YYYYYYY!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.